Compile changelogs #196
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: Compile changelogs | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
CompileCL: | |
runs-on: ubuntu-latest | |
if: github.repository == 'Proxima-Project/Proxi-Bay12' # to prevent this running on forks | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Python setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install depends | |
run: pip install pyyaml bs4 | |
- name: Compile CL | |
run: python tools/changelog/ss13_genchangelog.py html/changelog.html html/changelogs | |
- name: Commit And Push | |
run: | | |
git config --global user.name "Changelogs" | |
git config --global user.email "[email protected]" | |
git diff --quiet --exit-code && echo "No changes found, aborting." && exit 0 | |
git commit -am "Automatic changelog generation" | |
git push |