Skip to content

Commit

Permalink
chore: Add commit SHA tag for unique PR tags (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreylimnardy authored Aug 20, 2024
1 parent 6e08452 commit 424444f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ jobs:
if [[ $GITHUB_EVENT_NAME == 'push' ]]; then
echo 'TAGS=${{ github.ref_name }}' >> "$GITHUB_OUTPUT"
else
echo 'TAGS=PR-${{ github.event.pull_request.number }}' >> "$GITHUB_OUTPUT"
{
echo 'tags<<TAGS'
echo 'PR-${{ github.event.pull_request.number }}'
echo '${{ github.event.pull_request.head.sha }}'
echo 'TAGS'
} >> "$GITHUB_OUTPUT"
fi
build-image:
Expand Down

0 comments on commit 424444f

Please sign in to comment.