Github action for notifiying of missing email in AUTHOR file #26
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 PR Author | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
# Need permissions to write to the pull request by the check-authors.sh script | |
pull-requests: write | |
jobs: | |
check-author: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check if PR author is in AUTHORS file | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_EVENT_PATH: ${{ github.event_path }} | |
run: | | |
git fetch origin ${{ github.base_ref }} | |
git fetch origin ${{ github.head_ref }} | |
sh .github/workflows/check_authors.sh "origin/${{ github.base_ref }}..origin/${{ github.head_ref }}" |