Skip to content

Commit c271644

Browse files
committed
chore: use commit sha for image tagging
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent ac388b9 commit c271644

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
- name: Update package with EA version
6464
id: bump
6565
run: |
66-
EA_VERSION="${{ steps.current-version.outputs.base-version }}-ea-${{ github.run_number }}"
66+
SHORT_SHA=$(git rev-parse --short "${{ github.event.workflow_run.head_sha }}")
67+
EA_VERSION="${{ steps.current-version.outputs.base-version }}-ea.${SHORT_SHA}"
6768
npm version "$EA_VERSION" --no-git-tag-version
6869
echo "version=$EA_VERSION" >> "$GITHUB_OUTPUT"
6970

0 commit comments

Comments
 (0)