-
Notifications
You must be signed in to change notification settings - Fork 438
40 lines (35 loc) · 1.09 KB
/
generate_changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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