ci: remove old release if exits in test repo

This commit is contained in:
Kilian von Pflugk 2024-09-27 23:03:13 +02:00
parent 04315e7ad8
commit e3962a1fc1

View File

@ -41,6 +41,11 @@ jobs:
- name: Create archive - 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 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 - name: Create new release with tag
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'