Skip to content

chore: release v0.1.54 #455

chore: release v0.1.54

chore: release v0.1.54 #455

Workflow file for this run

name: "Check CONTRIBUTORS.md"
on:
pull_request:
branches:
- main
jobs:
check-contributors:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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)
if [ -z "$contributors" ]; then
echo "PR author ($pr_author) not found in CONTRIBUTORS.md"
exit 1
else
echo "PR author ($pr_author) found in CONTRIBUTORS.md"
fi