Skip to content

Commit

Permalink
合并拉取请求 #6
Browse files Browse the repository at this point in the history
改动github action
  • Loading branch information
dcsmf authored Jul 17, 2024
2 parents e1b2a81 + 1dd973c commit 3fdc09f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,13 @@ jobs:
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
--label "$LABEL" \
--head $BRANCH
# Delete the release if the version has build metadata
- name: Delete Release
if: steps.properties.outputs.pluginBuildMetadata != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api repos/{owner}/{repo}/releases \
--jq ".[] | select(.tag_name == \"${{ github.event.release.tag_name }}\") | .id" \
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}

0 comments on commit 3fdc09f

Please sign in to comment.