Update ezQuake help files #7
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: Update ezQuake help files | |
on: | |
workflow_dispatch: # allow manually triggered runs | |
repository_dispatch: | |
types: [ ezquake-source-updated ] | |
jobs: | |
update_help_files: | |
name: Update ezQuake data files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.PAT }} # required in order to trigger deploy prod workflow | |
- name: Delete existing help files | |
run: rm data/ezquake/help_*.json | |
- name: Download help files from ezquake-source | |
run: wget -i data/ezquake/files_to_download.txt -P data/ezquake | |
- name: Parse variables | |
run: (cd data/ezquake && python parse_variables.py) | |
- name: Delete obsolete files | |
run: rm data/ezquake/help_variables.json | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
name: Commit updated help files (if changed) | |
with: | |
commit_message: Update ezQuake help files. | |
file_pattern: data/ezquake/help_*.json |