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 name: Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
# needs: test # needs: test
needs: get_latest_tag
outputs: outputs:
release_name: ${{ steps.tag_version.outputs.new_tag }} release_name: ${{ steps.tag_version.outputs.new_tag }}
success: ${{ steps.set_flag.outputs.success }} success: ${{ steps.set_flag.outputs.success }}
@ -61,11 +62,11 @@ jobs:
id: changes id: changes
run: | run: |
rm -f .changes .changes_feat .changes_fix .changes_dep .changes_other 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 cat .changes
- name: Upload changelog file - name: Upload changelog file
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: changelog-file name: changelog-file
path: ./.changes path: ./.changes
@ -79,10 +80,10 @@ jobs:
else else
echo "changes=true" echo "changes=true"
echo "changes=true" >> "$GITEA_OUTPUT" echo "changes=true" >> "$GITEA_OUTPUT"
grep -i "feat" .changes >> .changes_feat grep -i "feat" .changes >> .changes_feat || true
grep -i "fix" .changes >> .changes_fix grep -i "fix" .changes >> .changes_fix || true
grep -i "dependencies" .changes >> .changes_dep grep -i "dependencies" .changes >> .changes_dep || true
grep -i "other" .changes >> .changes_other grep -i "other" .changes >> .changes_other || true
fi fi
- name: Cancel if no changes - name: Cancel if no changes