Skip to content

Commit c7d7768

Browse files
committed
tag_name fixed in action
1 parent 9740a92 commit c7d7768

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
release:
6767
needs: build
6868
runs-on: ubuntu-24.04
69+
if: startsWith(github.ref, 'refs/tags/') # Only run on tag pushes
6970

7071
steps:
7172
# Step 1: Checkout the repository
@@ -79,7 +80,7 @@ jobs:
7980
env:
8081
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8182
with:
82-
tag_name: ${{ github.ref }} # Use the pushed version tag as the release tag (e.g., v1.0.0)
83+
tag_name: ${{ github.ref_name }} # Use just the tag name (e.g., v1.0.0)
8384
release_name: Release ${{ github.ref_name }} # Name the release after the tag (e.g., v1.0.0)
8485
body: |
8586
Release notes for version ${{ github.ref_name }}.

0 commit comments

Comments
 (0)