anki/.github/workflows/contrib.yml

14 lines
306 B
YAML
Raw Normal View History

2020-01-03 23:04:22 +01:00
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"