mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
check contributors automatically
This commit is contained in:
parent
06f219ce33
commit
2cdac1d2f4
1 changed files with 13 additions and 0 deletions
13
.github/workflows/contrib.yml
vendored
Normal file
13
.github/workflows/contrib.yml
vendored
Normal 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"
|
Loading…
Reference in a new issue