Skip to content

Commit e792e2a

Browse files
authored
add cleanup step (#50)
1 parent 6fe1e1f commit e792e2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
- name: Set up Docker Buildx
149149
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 #v3
150150
- name: Build and push service image
151+
id: build_and_push
151152
if: steps.hub_image_exists.outputs.exists == 'false'
152153
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
153154
with:
@@ -167,4 +168,11 @@ jobs:
167168
provenance: mode=max
168169
sbom: true
169170
platforms: linux/amd64,linux/arm64
171+
172+
- name: Delete git tag created by this workflow
173+
if: failure() && steps.bump_version.outputs.new_tag != ''
174+
shell: bash
175+
run: |
176+
git push --delete origin ${{ steps.bump_version.outputs.new_tag }}
177+
170178

0 commit comments

Comments
 (0)