From df3378436bb206e042b43f9c0a2520822080d834 Mon Sep 17 00:00:00 2001 From: Johan Xie Date: Wed, 22 Nov 2023 17:42:21 +0800 Subject: [PATCH] ci: support deleting tags and associated releases --- .github/workflows/cleanup.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..b6fe26a --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,17 @@ +name: Clean up +on: + workflow_dispatch: + inputs: + version: + description: "SemVer" + required: true + type: string +jobs: + clean-up: + runs-on: macos-latest + steps: + - name: Delete the given tag and release + uses: dev-drprasad/delete-tag-and-release@v1.0 + with: + tag_name: "v${{ inputs.version }}" + github_token: ${{ secrets.PAT }}