From 87001918664c1c2501e2e7d6e29f80afa227e826 Mon Sep 17 00:00:00 2001 From: IQuant Date: Thu, 28 Nov 2024 20:46:46 +0300 Subject: [PATCH] Update ci script --- .github/workflows/release.yml | 9 ++++----- scripts/check_pre_ci.py | 8 +++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e7b6418..8d1dd2cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,16 +96,15 @@ jobs: steps: - uses: actions/checkout@v4 + with: + sparse-checkout: last_release_notes.md - name: Download all workflow run artifacts uses: actions/download-artifact@v4 with: merge-multiple: true - - name: Get tag message - run: git tag -l --format='%(contents)' $(git describe --tags) > release_body.md - - name: Print release body - run: cat release_body.md - uses: ncipollo/release-action@v1 with: draft: true artifacts: "*.zip" - bodyFile: release_body.md \ No newline at end of file + bodyFile: last_release_notes.md + \ No newline at end of file diff --git a/scripts/check_pre_ci.py b/scripts/check_pre_ci.py index 85a35ea9..7c4a8af6 100644 --- a/scripts/check_pre_ci.py +++ b/scripts/check_pre_ci.py @@ -30,7 +30,7 @@ It should be detected automatically as long as you use steam version of the game notes.p("There is a button in bottom-left corner on noita-proxy's main screen that allows to auto-update to a new version when one is available") print() - notes_path = "/tmp/rnotes.md" + notes_path = "./last_release_notes.md" with open(notes_path, "w") as f: print(notes.gen_md(), file=f) @@ -45,9 +45,11 @@ def main(): exit(1) subprocess.run(["git", "pull"]) - subprocess.run(["git", "commit", "-am", "Automated commit: "+tag]) - + notes_path = generate_notes(tag) + + subprocess.run(["git", "add", "-A"]) + subprocess.run(["git", "commit", "-am", "Automated commit: "+tag]) subprocess.check_call(["git", "tag", "-a", "-F", notes_path, tag ]) subprocess.check_call(["git", "push", "--follow-tags"])