feat: Add a Postgres backend to pavex_session #450
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |