Skip to content

Github action for notifiying of missing email in AUTHOR file #26

Github action for notifiying of missing email in AUTHOR file

Github action for notifiying of missing email in AUTHOR file #26

Workflow file for this run

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 }}"