fix: fixed changelog path (#7602)

This commit is contained in:
Selis
2024-01-21 12:13:09 +01:00
committed by GitHub
parent e1b5803ce2
commit 6bb8e05e07
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
# Creates an entry in html/changelogs automatically, to eventually be compiled by compile_changelogs
# Creates an entry in html/changelogs_ch automatically, to eventually be compiled by compile_changelogs
name: Auto Changelog
on:
pull_request_target:

View File

@@ -38,14 +38,14 @@ jobs:
- name: "Compile"
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
python tools/ss13_genchangelog.py html/changelogs
python tools/ss13_genchangelog.py html/changelogs_ch
- name: Commit
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
git config --local user.email "action@github.com"
git config --local user.name "Changelogs"
git pull origin master
git add html/changelogs
git add html/changelogs_ch
git commit -m "Automatic changelog compile [ci skip]" -a || true
- name: "Push"
if: steps.value_holder.outputs.ACTIONS_ENABLED

View File

@@ -35,7 +35,7 @@ export async function processAutoChangelog({ github, context }) {
github.rest.repos.createOrUpdateFileContents({
owner: context.repo.owner,
repo: context.repo.repo,
path: `html/changelogs/AutoChangeLog-pr-${context.payload.pull_request.number}.yml`,
path: `html/changelogs_ch/AutoChangeLog-pr-${context.payload.pull_request.number}.yml`,
message: `Automatic changelog for PR #${context.payload.pull_request.number} [ci skip]`,
content: Buffer.from(yml).toString("base64"),
});