Skip to content

Commit bb9cf7f

Browse files
committed
Delete the test release and tag after
1 parent 798442c commit bb9cf7f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,21 @@ jobs:
121121
run: |
122122
echo "Package path: ${{ steps.pie-ext-binary-builder.outputs.package-path }}"
123123
ls -l
124+
125+
delete-test-release:
126+
runs-on: ubuntu-latest
127+
if: always()
128+
needs: [test-action]
129+
steps:
130+
- name: Checkout
131+
uses: actions/checkout@v6
132+
133+
- name: Delete test release
134+
run: |
135+
if gh release view "${{ env.RELEASE_TAG }}" > /dev/null 2>&1; then
136+
gh release delete "${{ env.RELEASE_TAG }}" --yes --cleanup-tag
137+
else
138+
echo "Release ${{ env.RELEASE_TAG }} does not exist, skipping deletion."
139+
fi
140+
env:
141+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)