check contributors automatically

This commit is contained in:
Damien Elmes 2020-01-04 08:04:22 +10:00
parent 06f219ce33
commit 2cdac1d2f4

13
.github/workflows/contrib.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: Author in CONTRIBUTORS
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check
run: |
headAuthor=$(git log -1 --pretty=format:'%ae')
git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"