diff --git a/.github/workflows/dependabot-fork.yml b/.github/workflows/dependabot-fork.yml new file mode 100644 index 000000000..e700087de --- /dev/null +++ b/.github/workflows/dependabot-fork.yml @@ -0,0 +1,17 @@ +--- +on: pull_request + +jobs: + dependabot-fork: + runs-on: ubuntu-latest + name: Ignore dependabot on forks + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Comment Dependabot PR + if: github.repository_owner != 'DIYgod' && github.actor == 'dependabot[bot]' + uses: thollander/actions-comment-pull-request@v1 + with: + message: '@dependabot ignore this dependency' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}