Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
更新文件名
Browse files Browse the repository at this point in the history
sinspired committed Oct 16, 2024
1 parent 10ae0a5 commit f88130f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -105,13 +105,17 @@ jobs:
echo "commit_message=${COMMIT_MESSAGE}" >> $GITHUB_OUTPUT
shell: bash

- name: Delete existing release
uses: dev-drprasad/[email protected]
with:
tag_name: ${{ github.ref_name }}
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete existing release if exists
run: |
RELEASE_ID=$(gh release view ${{ github.ref_name }} --json id --jq '.id' || echo "")
if [ -n "$RELEASE_ID" ]; then
gh release delete ${{ github.ref_name }} --yes
echo "Release deleted: ${{ github.ref_name }}"
else
echo "No existing release found for: ${{ github.ref_name }}"
fi
shell: bash


- name: List Files
run: ls -R ./

0 comments on commit f88130f

Please sign in to comment.