name: Ignore dependabot on forks on: pull_request jobs: dependabot-fork: if: github.repository_owner != 'DIYgod' && github.actor == 'dependabot[bot]' runs-on: ubuntu-latest name: Ignore dependabot on forks timeout-minutes: 5 steps: - name: Checkout uses: actions/checkout@v4 - name: Comment Dependabot PR uses: thollander/actions-comment-pull-request@v2 with: message: '@dependabot ignore this dependency' GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}