Refactoring #120
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: Generate Command Docs | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'src/system.py' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
architecture: 'x64' | |
- name: Install numpy | |
run: python3 -m pip install numpy | |
- name: Generate Docs | |
run: python3 src/docGen.py | |
- name: Commit and Push CommandDocs.txt | |
run: | |
git config --global user.name github-actions && | |
git config --global user.email [email protected] && | |
git add CommandDocs.txt && | |
git commit -m "Auto-updating CommandDocs.txt" || exit 0 && | |
git push |