Skip to content

Commit

Permalink
chore: ignore bots in CONTRIBUTORS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Apr 21, 2024
1 parent a35422c commit 6ed4bee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
- name: Check PR author in CONTRIBUTORS.md
run: |
pr_author=$(jq -r .pull_request.user.login "$GITHUB_EVENT_PATH")
if $pr_author == "dependabot[bot]"; then
echo "PR author is dependabot[bot]"
exit 0
fi
if $pr_author == "pavex-releaser[bot]"; then
echo "PR author is pavex-releaser[bot]"
exit 0
fi
pattern="(@$pr_author)"
contributors=$(grep -Eo "$pattern" CONTRIBUTORS.md || true)
Expand Down

0 comments on commit 6ed4bee

Please sign in to comment.