From eb344ea6671e984f2789bcdf37c72319be832c30 Mon Sep 17 00:00:00 2001 From: Yishuai Li Date: Mon, 31 Jan 2022 12:16:08 -0500 Subject: [PATCH] chore: Ignore dependabot on forks (#8431) * Ignore dependabot on forks * Apply suggestions from code review Co-authored-by: Tony Co-authored-by: Tony --- .github/workflows/dependabot-fork.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dependabot-fork.yml 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 }}