From c69fd78738fb9689c48b203e773c60af65c79f6d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 17 Aug 2023 21:23:24 -0400 Subject: [PATCH] Delete the previous release for our "nightlies." --- .github/workflows/publish-artifacts.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-artifacts.yml b/.github/workflows/publish-artifacts.yml index dfb9fd55db..7ab4b9c6cd 100644 --- a/.github/workflows/publish-artifacts.yml +++ b/.github/workflows/publish-artifacts.yml @@ -52,10 +52,11 @@ jobs: fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifacts/${art.name}.zip`, Buffer.from(download.data)); })); - - name: Delete Previous Tag - run: | - git tag -d last-successful || true - git push origin :refs/tags/last-successful || true + - name: Delete Previous Release + uses: dev-drprasad/delete-tag-and-release@v1.0.0 + with: + tag_name: last-successful + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Update Release id: release