fix(ci): fix release

This commit is contained in:
Luke Tainton 2025-01-02 17:25:18 +00:00
parent 389a066529
commit 742ae10e76
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -49,6 +49,7 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
# needs: test
needs: get_latest_tag
outputs:
release_name: ${{ steps.tag_version.outputs.new_tag }}
success: ${{ steps.set_flag.outputs.success }}
@ -61,11 +62,11 @@ jobs:
id: changes
run: |
rm -f .changes .changes_feat .changes_fix .changes_dep .changes_other
sh -c 'git log $(git describe -C ${{ gitea.workspace }} --tags --abbrev=0)..HEAD --no-merges --oneline' >> .changes
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline >> .changes
cat .changes
- name: Upload changelog file
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: changelog-file
path: ./.changes
@ -79,10 +80,10 @@ jobs:
else
echo "changes=true"
echo "changes=true" >> "$GITEA_OUTPUT"
grep -i "feat" .changes >> .changes_feat
grep -i "fix" .changes >> .changes_fix
grep -i "dependencies" .changes >> .changes_dep
grep -i "other" .changes >> .changes_other
grep -i "feat" .changes >> .changes_feat || true
grep -i "fix" .changes >> .changes_fix || true
grep -i "dependencies" .changes >> .changes_dep || true
grep -i "other" .changes >> .changes_other || true
fi
- name: Cancel if no changes