mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +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
|
name: Auto Changelog
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
|||||||
4
.github/workflows/compile_changelogs.yml
vendored
4
.github/workflows/compile_changelogs.yml
vendored
@@ -38,14 +38,14 @@ jobs:
|
|||||||
- name: "Compile"
|
- name: "Compile"
|
||||||
if: steps.value_holder.outputs.ACTIONS_ENABLED
|
if: steps.value_holder.outputs.ACTIONS_ENABLED
|
||||||
run: |
|
run: |
|
||||||
python tools/ss13_genchangelog.py html/changelogs
|
python tools/ss13_genchangelog.py html/changelogs_ch
|
||||||
- name: Commit
|
- name: Commit
|
||||||
if: steps.value_holder.outputs.ACTIONS_ENABLED
|
if: steps.value_holder.outputs.ACTIONS_ENABLED
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "Changelogs"
|
git config --local user.name "Changelogs"
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git add html/changelogs
|
git add html/changelogs_ch
|
||||||
git commit -m "Automatic changelog compile [ci skip]" -a || true
|
git commit -m "Automatic changelog compile [ci skip]" -a || true
|
||||||
- name: "Push"
|
- name: "Push"
|
||||||
if: steps.value_holder.outputs.ACTIONS_ENABLED
|
if: steps.value_holder.outputs.ACTIONS_ENABLED
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export async function processAutoChangelog({ github, context }) {
|
|||||||
github.rest.repos.createOrUpdateFileContents({
|
github.rest.repos.createOrUpdateFileContents({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
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]`,
|
message: `Automatic changelog for PR #${context.payload.pull_request.number} [ci skip]`,
|
||||||
content: Buffer.from(yml).toString("base64"),
|
content: Buffer.from(yml).toString("base64"),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user