Feral - Bug Fixes and Optimizations #345
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 README | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
paths: | |
- 'Rotations/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
id: python3 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: pip install dependencies | |
run: pip install -r "$GITHUB_WORKSPACE/.github/scripts/requirements.txt" | |
- name: Run Python README updater | |
run: ${{ steps.python3.outputs.python-path }} "$GITHUB_WORKSPACE/.github/scripts/update_readme.py" "$GITHUB_WORKSPACE" | |
- name: Commit changes | |
run: | | |
git diff | |
git config --global user.email "actions@users.noreply.github.com" | |
git config --global user.name "README Bot" | |
git add README.md | |
git commit -m "Updated README.md from rotation metadata" || exit 0 | |
git push |