From 659c3bf43b89f78d1a35d1fcc990c5adfd0c5775 Mon Sep 17 00:00:00 2001 From: Binnette Date: Wed, 27 Nov 2024 10:32:19 +0100 Subject: [PATCH] Workflow: delete Nightly release before creating a new one --- .github/workflows/nightly.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index fdc7ffac..bc565bff 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -38,7 +38,12 @@ jobs: DATE=$(date +'%Y%m%d') mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/OSMTracker-nightly-$DATE.apk - - name: Create or Update GitHub Nightly Release + - name: Delete existing Nightly release + if: success() + run: | + gh release delete nightly --yes + + - name: Create GitHub Nightly Release if: success() uses: softprops/action-gh-release@v2.1.0 with: