Check members.md listings #111
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check members.md listings | |
# For manual and scheduled runs, warnings will trigger a workflow fail | |
# For pull/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@v4 | |
- name: Check members.md for discrepancies | |
run: | | |
echo "${{ github.event_name }}" | |
case "${{ github.event_name }}" in | |
schedule|workflow_dispatch) | |
python3 members_check.py failOnWarn | |
;; | |
*) | |
python3 members_check.py | |
;; | |
esac |