mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
split contrib check into separate file
This commit is contained in:
parent
947d35dfca
commit
a4d37e4014
2 changed files with 9 additions and 2 deletions
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
|
- 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"
|
|
||||||
|
|
Loading…
Reference in a new issue