Skip to content

Commit ac8808a

Browse files
authored
probably fixes changelog compiler (#7513)
## About The Pull Request ## Why It's Good For The Game ## Changelog :cl: code: if you see this, that means that changelog is working again /:cl:
1 parent ac64c76 commit ac8808a

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/compile_changelogs.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: Compile changelogs
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: "0 0 * * *"
66
workflow_dispatch:
77

88
jobs:
99
compile:
1010
name: "Compile changelogs"
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
12+
permissions:
13+
contents: write
1214
steps:
1315
- name: "Check for ACTION_ENABLER secret and pass true to output if it exists to be checked by later steps"
1416
id: value_holder
@@ -18,35 +20,40 @@ jobs:
1820
unset SECRET_EXISTS
1921
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi
2022
echo "ACTIONS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT
23+
2124
- name: "Setup python"
2225
if: steps.value_holder.outputs.ACTIONS_ENABLED
23-
uses: actions/setup-python@v1
26+
uses: actions/setup-python@v6
2427
with:
25-
python-version: '3.x'
28+
python-version: "3.x"
29+
2630
- name: "Install deps"
2731
if: steps.value_holder.outputs.ACTIONS_ENABLED
2832
run: |
2933
python -m pip install --upgrade pip
3034
python -m pip install pyyaml
31-
sudo apt-get install dos2unix
35+
3236
- name: "Checkout"
3337
if: steps.value_holder.outputs.ACTIONS_ENABLED
34-
uses: actions/checkout@v3
38+
uses: actions/checkout@v6
3539
with:
3640
fetch-depth: 25
3741
persist-credentials: false
42+
3843
- name: "Compile"
3944
if: steps.value_holder.outputs.ACTIONS_ENABLED
4045
run: |
4146
python tools/ss13_genchangelog.py html/changelogs
47+
4248
- name: Commit
4349
if: steps.value_holder.outputs.ACTIONS_ENABLED
4450
run: |
45-
git config --local user.email "action@github.com"
46-
git config --local user.name "Changelogs"
51+
git config --local user.name "silicons-bot"
52+
git config --local user.email "121360372+silicons-bot@users.noreply.github.com"
4753
git pull origin master
4854
git add html/changelogs
4955
git commit -m "Automatic changelog compile [ci skip]" -a || true
56+
5057
- name: "Push"
5158
if: steps.value_holder.outputs.ACTIONS_ENABLED
5259
uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)