include commit hash in pre-release (#456)

this solves the "create new release" issue as well as tag conflicts with
branch name
This commit is contained in:
Ferdinand Schober
2026-06-11 16:50:04 +02:00
committed by GitHub
parent 1b53e58ba9
commit 02ac0bf220

View File

@@ -179,8 +179,8 @@ jobs:
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, substring(github.sha, 0, 7)) }}
name: ${{ format('{0}-{1}', github.event.inputs.name || github.ref_name, substring(github.sha, 0, 7)) }}
prerelease: true
generate_release_notes: true
files: |