Skip to content

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

Github action for notifiying of missing email in AUTHOR file

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

Workflow file for this run

name: Check PR Author
on:
pull_request:
types: [opened, reopened, synchronize]
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 }} --unshallow --depth 1
git fetch origin ${{ github.head_ref }} --unshallow--depth 1
sh -x .github/workflows/check_authors.sh "origin/${{ github.base_ref }}..origin/${{ github.head_ref }}"