We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2bbd13 commit 5ca4c11Copy full SHA for 5ca4c11
1 file changed
.github/workflows/docker-image.yml
@@ -27,7 +27,7 @@ jobs:
27
id: vars
28
run: |
29
if ("${{ github.event_name }}" -eq "workflow_dispatch") {
30
- echo "DOCKER_TAG=${{ github.event.inputs.tag }}" >> $env:GITHUB_OUTPUT
+ echo "DOCKER_TAG=$('${{ github.event.inputs.tag }}' -replace '^v', '' -replace '\.\w+$', '')" >> $env:GITHUB_OUTPUT
31
} else {
32
echo "DOCKER_TAG=$('${{ github.ref_name }}' -replace '^v', '' -replace '\.\w+$', '')" >> $env:GITHUB_OUTPUT
33
}
0 commit comments