Skip to content

Commit 5558b59

Browse files
committed
fix: add support for head_ref deletion
1 parent 1b9353f commit 5558b59

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/gh_delete_branch.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
inlineScript: |
3030
az acr repository delete \
3131
--name ${{ env.AZURE_CONTAINER_REGISTRY }} \
32-
--image ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ github.ref_name }} \
32+
--image ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ github.head_ref }} \
3333
--yes
3434
3535
gh-delete-branch:
@@ -46,7 +46,6 @@ jobs:
4646
GITHUB_CONTEXT: ${{ toJSON(github) }}
4747
run: echo "$GITHUB_CONTEXT"
4848

49-
# - name: Delete Branch
50-
# shell: bash
51-
# run: git push origin --delete ${{ github.ref_name }}
52-
49+
- name: Delete Branch
50+
shell: bash
51+
run: git push origin --delete ${{ github.head_ref }}

0 commit comments

Comments
 (0)