From 597f4c572e450afc8cc155facba0b14131e420b0 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Wed, 1 Jan 2025 02:39:40 +0000 Subject: [PATCH] chore(ci): manually build changelog --- .gitea/workflows/release.yml | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index cd0379c..1efe363 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -70,16 +70,12 @@ jobs: if [ -z "$CHANGES" ] then echo "changes=false" >> "$GITEA_OUTPUT" - echo "changes_feat=false" >> "$GITEA_OUTPUT" - echo "changes_fix=false" >> "$GITEA_OUTPUT" - echo "changes_dep=false" >> "$GITEA_OUTPUT" - echo "changes_other=false" >> "$GITEA_OUTPUT" else echo "changes=true" >> "$GITEA_OUTPUT" - echo "changes_feat=CHANGES_FEAT" >> "$GITEA_OUTPUT" - echo "changes_fix=CHANGES_FIX" >> "$GITEA_OUTPUT" - echo "changes_dep=CHANGES_DEP" >> "$GITEA_OUTPUT" - echo "changes_other=CHANGES_OTHER" >> "$GITEA_OUTPUT" + echo $CHANGES_FEAT" >> .changes_feat + echo $CHANGES_FIX" >> .changes_fix + echo $CHANGES_DEP" >> .changes_dep + echo $CHANGES_OTHER" >> .changes_other fi - name: Create changelog @@ -87,19 +83,14 @@ jobs: run: | if test "${{ steps.changes.outputs.changes }}" = "true" then - cat <> changelog.md - ## 🚀 Features - $CHANGES_FEAT - - ## 🐛 Bug Fixes - $CHANGES_FIX - - ## 📦 Dependencies - $CHANGES_DEP - - ## 💬 Other - $CHANGES_OTHER - EOF + printf "## 🚀 Features" > .changelog + cat .changes_feat >> .changelog + printf "\n\n## 🐛 Bug Fixes" >> .changelog + cat .changes_fix >> .changelog + printf "\n\n## 📦 Dependencies" >> .changelog + cat .changes_dep >> .changelog + printf "\n\n## 💬 Other" >> .changelog + cat .changes_other >> .changelog fi - name: Set server URL @@ -170,7 +161,7 @@ jobs: with: tag: ${{ steps.get_next_version.outputs.tag }} name: ${{ steps.get_next_version.outputs.tag }} - body_path: changelog.md + body_path: .changelog - name: Set success/fail flag id: set_flag