Skip to content

Commit f8a3774

Browse files
committed
Simplify tags
1 parent 316701e commit f8a3774

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
id: set
3030
run: |
3131
# Pick a latest tag based on the event type
32-
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
33-
echo "LATEST_TAG=pr-${{ github.event.number }}" >> $GITHUB_OUTPUT
34-
elif [[ "${{ github.ref }}" != "refs/heads/${{ github.event.repository.default_branch }}" ]]; then
32+
if [[ "${{ github.ref }}" != "refs/heads/${{ github.event.repository.default_branch }}" ]]; then
3533
echo "LATEST_TAG=${{ github.ref_name }}" >> $GITHUB_OUTPUT
3634
else
3735
echo "LATEST_TAG=latest" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)