Merge pull request #10187 from breadoven/abo_coursehold_improvement #1
This file contains 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: Make sure docs are updated | |
on: | |
pull_request: | |
paths: | |
- src/main/fc/settings.yaml | |
- docs/Settings.md | |
push: | |
paths: | |
- src/main/fc/settings.yaml | |
- docs/Settings.md | |
jobs: | |
settings_md: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get -y install python3-yaml | |
- name: Check that Settings.md is up to date | |
run: | | |
cp docs/Settings.md{,.ci} | |
python3 src/utils/update_cli_docs.py -q | |
if ! diff -q docs/Settings.md{,.ci} >/dev/null; then | |
echo "::error ::\"docs/Settings.md\" is not up to date, please run \"src/utils/update_cli_docs.py\"" | |
exit 1 | |
fi |