From bccc634158026d6f4c48f7f31a9d3103ef2c3cd4 Mon Sep 17 00:00:00 2001 From: ggman12 Date: Thu, 12 Feb 2026 11:50:45 -0500 Subject: [PATCH] remove existing release --- .github/workflows/planequery-aircraft-daily-release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/planequery-aircraft-daily-release.yaml b/.github/workflows/planequery-aircraft-daily-release.yaml index 8dc1c96..ac62132 100644 --- a/.github/workflows/planequery-aircraft-daily-release.yaml +++ b/.github/workflows/planequery-aircraft-daily-release.yaml @@ -321,6 +321,13 @@ jobs: echo "zip_basename=$ZIP_BASENAME" >> "$GITHUB_OUTPUT" echo "name=planequery-aircraft snapshot ($DATE)${BRANCH_SUFFIX}" >> "$GITHUB_OUTPUT" + - name: Delete existing release if exists + run: | + gh release delete "${{ steps.meta.outputs.tag }}" --yes 2>/dev/null || true + git push --delete origin "refs/tags/${{ steps.meta.outputs.tag }}" 2>/dev/null || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create GitHub Release and upload assets uses: softprops/action-gh-release@v2 with: