Skip to content

Commit e2ac6ff

Browse files
authored
Update publish-release.yml
Signed-off-by: Aleksandar Stanchev <[email protected]>
1 parent 097ba18 commit e2ac6ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66
inputs:
77
release:
8-
description: 'Release version only used for run name. Actual release version is taken from version.sbt'
8+
description: 'Release version used for run name and tag. Actual release version is taken from version.sbt'
99
required: false
1010
type: string
1111
build:
@@ -66,7 +66,7 @@ jobs:
6666
git config --local user.name "GitHub Actions"
6767
git config --local user.email "[email protected]"
6868
echo "VERSION_TAG=$(grep 'version := ' version.sbt | sed -E 's/version := \"(.*)\"/\1/')" >> $GITHUB_ENV
69-
git tag -a "v${{ env.VERSION_TAG }}" -m "Release ${{ env.VERSION_TAG }}"
70-
git push origin "v${{ env.VERSION_TAG }}"
69+
git tag -a "v${{ github.event.inputs.release }}" -m "Release ${{ github.event.inputs.release }}"
70+
git push origin "v${{ github.event.inputs.release }}"
7171
env:
7272
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)