Skip to content

Compile changelogs #567

Compile changelogs

Compile changelogs #567

name: Compile changelogs
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
CompileCL:
runs-on: ubuntu-latest
if: github.repository == 'OpaqueSunset/LighthouseRelay' # to prevent this running on forks
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Otherwise, we will fail to push refs
ref: master
token: ${{ secrets.BOT_TOKEN }}
- 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/ss13_genchangelog.py html/changelog.html html/changelogs
- name: Commit And Push
run: |
git config --local user.email "${{ secrets.BOT_EMAIL }}"
git config --local user.name "${{ secrets.BOT_NAME }}"
git commit -m "Automatic changelog generation [ci skip]" -a
git push