-
Notifications
You must be signed in to change notification settings - Fork 155
33 lines (33 loc) · 1017 Bytes
/
members_check.yml
File metadata and controls
33 lines (33 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Check members.md listings
# For manual, scheduled and pull runs, warnings will trigger a workflow fail
# For push, only errors (i.e. not a member at all) cause a failure
on:
push:
paths:
- 'content/foundation/members.md'
- 'members_check.py'
- '.github/workflows/members_check.yml'
pull_request:
paths:
- 'content/foundation/members.md'
- 'members_check.py'
- '.github/workflows/members_check.yml'
workflow_dispatch:
schedule:
- cron: "25 10 * * *" # Daily
jobs:
members-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Check members.md for discrepancies
run: |
echo "${{ github.event_name }}"
case "${{ github.event_name }}" in
schedule|workflow_dispatch|pull_request)
python3 members_check.py failOnWarn
;;
*)
python3 members_check.py
;;
esac