chore(ci): manually build changelog

This commit is contained in:
Luke Tainton 2025-01-01 02:39:40 +00:00
parent a5a687face
commit 597f4c572e
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -70,16 +70,12 @@ jobs:
if [ -z "$CHANGES" ] if [ -z "$CHANGES" ]
then then
echo "changes=false" >> "$GITEA_OUTPUT" 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 else
echo "changes=true" >> "$GITEA_OUTPUT" echo "changes=true" >> "$GITEA_OUTPUT"
echo "changes_feat=CHANGES_FEAT" >> "$GITEA_OUTPUT" echo $CHANGES_FEAT" >> .changes_feat
echo "changes_fix=CHANGES_FIX" >> "$GITEA_OUTPUT" echo $CHANGES_FIX" >> .changes_fix
echo "changes_dep=CHANGES_DEP" >> "$GITEA_OUTPUT" echo $CHANGES_DEP" >> .changes_dep
echo "changes_other=CHANGES_OTHER" >> "$GITEA_OUTPUT" echo $CHANGES_OTHER" >> .changes_other
fi fi
- name: Create changelog - name: Create changelog
@ -87,19 +83,14 @@ jobs:
run: | run: |
if test "${{ steps.changes.outputs.changes }}" = "true" if test "${{ steps.changes.outputs.changes }}" = "true"
then then
cat <<EOF >> changelog.md printf "## 🚀 Features" > .changelog
## 🚀 Features cat .changes_feat >> .changelog
$CHANGES_FEAT printf "\n\n## 🐛 Bug Fixes" >> .changelog
cat .changes_fix >> .changelog
## 🐛 Bug Fixes printf "\n\n## 📦 Dependencies" >> .changelog
$CHANGES_FIX cat .changes_dep >> .changelog
printf "\n\n## 💬 Other" >> .changelog
## 📦 Dependencies cat .changes_other >> .changelog
$CHANGES_DEP
## 💬 Other
$CHANGES_OTHER
EOF
fi fi
- name: Set server URL - name: Set server URL
@ -170,7 +161,7 @@ jobs:
with: with:
tag: ${{ steps.get_next_version.outputs.tag }} tag: ${{ steps.get_next_version.outputs.tag }}
name: ${{ 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 - name: Set success/fail flag
id: set_flag id: set_flag