Changelog Automaker (Compile) #633
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: Changelog Automaker (Compile) | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
env: | |
GIT_EMAIL: "action@github.com" | |
GIT_NAME: "Changelog Automaker" | |
jobs: | |
MakeCL: | |
runs-on: ubuntu-latest | |
# discriminator to exclude forks | |
if: github.repository == 'Haven-13/Haven-Urist' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 25 | |
- name: Python setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install depends | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyyaml bs4 | |
- name: Compile CL | |
run: python tools/changelog/compile_cl.py resources/html/changelog/changelog.html .changelog | |
- name: Commit | |
run: | | |
git config --local user.email $GIT_EMAIL | |
git config --local user.name "$GIT_NAME" | |
git pull origin latest | |
git commit -m "Auto-CL compile [ci skip]" -a || true | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |