split contrib check into separate file
This commit is contained in:
parent
947d35dfca
commit
a4d37e4014
8
.github/scripts/contrib.sh
vendored
Executable file
8
.github/scripts/contrib.sh
vendored
Executable 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"
|
3
.github/workflows/contrib.yml
vendored
3
.github/workflows/contrib.yml
vendored
@ -9,5 +9,4 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check
|
||||
run: |
|
||||
headAuthor=$(git log -1 --pretty=format:'%ae')
|
||||
git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"
|
||||
.github/scripts/contrib.sh
|
||||
|
Loading…
Reference in New Issue
Block a user