Skip to content

Commit a118532

Browse files
committed
chore: use -ea.COMMIT_SHA suffix
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent e9544d6 commit a118532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/push-to-registry.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
- name: Get package version
5050
id: package-version
5151
run: |
52-
# Use git tag if available (for tag-triggered builds), otherwise use base version with -dev suffix
52+
# Use git tag if available (for tag-triggered builds), otherwise use base version with -ea.COMMIT_SHA suffix
5353
if [ -n "${{ github.ref_type }}" ] && [ "${{ github.ref_type }}" = "tag" ]; then
5454
# Remove 'v' prefix if present (e.g., v1.0.0 -> 1.0.0)
5555
VERSION="${{ github.ref_name }}"
5656
VERSION="${VERSION#v}"
5757
else
58-
# For branch pushes (like main), use base version with -dev suffix and commit SHA
58+
# For branch pushes (like main), use base version with -ea.COMMIT_SHA suffix
5959
BASE_VERSION=$(node -p "require('./package.json').version" | sed -E 's/-ea[.-][0-9]+$//')
6060
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
6161
SHORT_SHA=$(git rev-parse --short "${{ github.sha }}")

0 commit comments

Comments
 (0)