Skip to content

Commit e4d1e52

Browse files
committed
workflows/bptag: don't delete tag on failure
issue externpro/externpro#292
1 parent 6161be1 commit e4d1e52

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

.github/workflows/bptag.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,3 @@ jobs:
153153
echo "Dispatching ${wf} at ref ${TAG}"
154154
gh api -X POST "repos/${REPO}/actions/workflows/${wf}/dispatches" \
155155
-f ref="${TAG}"
156-
-
157-
name: Cleanup tag on failure
158-
if: ${{ always() && steps.create_tag.outputs.tag_created == 'true' && (failure() || cancelled()) }}
159-
env:
160-
TAG: ${{ github.event.inputs.tag }}
161-
run: |
162-
set -euo pipefail
163-
echo "Deleting remote tag ${TAG} due to failure/cancelled run"
164-
git push origin --delete "${TAG}"

0 commit comments

Comments
 (0)