mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
fix: fixed changelog path (#7602)
This commit is contained in:
2
.github/workflows/autochangelog.yml
vendored
2
.github/workflows/autochangelog.yml
vendored
@@ -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:
|
||||
|
||||
4
.github/workflows/compile_changelogs.yml
vendored
4
.github/workflows/compile_changelogs.yml
vendored
@@ -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
|
||||
|
||||
@@ -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"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user