Compare commits

...

2 Commits

Author SHA1 Message Date
Ferdinand Schober
a716e195ed fix short-sha 2026-06-11 16:54:33 +02:00
Ferdinand Schober
151792db31 include commit hash in pre-release
this solves the "create new release" issue as well as tag conflicts with
branch name
2026-06-11 16:49:32 +02:00

View File

@@ -174,13 +174,15 @@ jobs:
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
- name: Get short SHA
run: echo "short_sha=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
- name: Create Pre-Release
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.event.inputs.name || github.ref_name }}
name: ${{ github.event.inputs.name || github.ref_name }}
tag_name: ${{ format('{0}-{1}', github.event.inputs.name || github.ref_name, steps.vars.outputs.short_sha) }}
name: ${{ format('{0}-{1}', github.event.inputs.name || github.ref_name, steps.vars.outputs.short_sha) }}
prerelease: true
generate_release_notes: true
files: |