ci: remove old release if exits in test repo
This commit is contained in:
parent
04315e7ad8
commit
e3962a1fc1
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -41,6 +41,11 @@ jobs:
|
||||
- name: Create archive
|
||||
run: zip -j "intro-skipper-v${{ env.NEW_FILE_VERSION }}.zip" ConfusedPolarBear.Plugin.IntroSkipper/bin/Release/net8.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
|
||||
|
||||
- name: Remove old release if exits
|
||||
if: ${{ github.repository == 'intro-skipper/intro-skipper-test' }}
|
||||
run: gh release delete "10.9/v${{ env.NEW_FILE_VERSION }}" --cleanup-tag --yes || true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create new release with tag
|
||||
if: github.event_name != 'pull_request'
|
||||
|
Loading…
x
Reference in New Issue
Block a user