split contrib check into separate file

This commit is contained in:
Damien Elmes 2020-01-06 15:37:21 +10:00
parent 947d35dfca
commit a4d37e4014
2 changed files with 9 additions and 2 deletions

8
.github/scripts/contrib.sh vendored Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
headAuthor=$(git log -1 --pretty=format:'%ae')
git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"
echo "$headAuthor found in CONTRIBUTORS"

View File

@ -9,5 +9,4 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Check - name: Check
run: | run: |
headAuthor=$(git log -1 --pretty=format:'%ae') .github/scripts/contrib.sh
git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"