Skip to content

Generate Changelog #238

Generate Changelog

Generate Changelog #238

name: 'Generate Changelog'
on:
workflow_dispatch:
permissions:
contents: read
jobs:
generate_changelog:
permissions:
contents: write # for Git to git push
name: 'Generate Changelog'
runs-on: ubuntu-latest
steps:
- name: Changelog bot install token
id: changelog-bot
uses: getsentry/action-github-app-token@v3
with:
app_id: ${{ secrets.CHANGELOGBOT_APPID }}
private_key: ${{ secrets.CHANGELOGBOT_PRIVATEKEY }}
- name: 'Update Branch'
uses: actions/checkout@v4
with:
repository: 'ss220-space/Paradise'
token: ${{ steps.changelog-bot.outputs.token }}
fetch-depth: 1000
- name: 'Install Dependencies'
run: pip3 install GitPython
- name: 'Generate Changelog'
run: 'python3 tools/changelog/gen_changelog.py'
- name: 'Commit Changelog'
run: |
git config --local user.email "[email protected]"
git config --local user.name "Changelog Generation"
git add html/changelogs/archive/\*.yml
git commit -m "Automatic changelog generation"
git push