From c61516d4ab4f3ddf9152532102d8dab860492819 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 21 Oct 2024 13:27:32 +0100 Subject: [PATCH] Add workflow to delete a staged release --- .github/workflows/delete-staged-release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/delete-staged-release.yml diff --git a/.github/workflows/delete-staged-release.yml b/.github/workflows/delete-staged-release.yml new file mode 100644 index 00000000..98db3172 --- /dev/null +++ b/.github/workflows/delete-staged-release.yml @@ -0,0 +1,17 @@ +name: Delete Staged Release +on: + workflow_dispatch: + inputs: + build-version: + description: 'Version of the build to delete' + required: true +jobs: + delete-staged-release: + name: Delete Staged Release + steps: + - name: Set up JFrog CLI + uses: jfrog/setup-jfrog-cli@9fe0f98bd45b19e6e931d457f4e98f8f84461fb5 # v4.4.1 + env: + JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }} + - name: Delete Build + run: jfrog rt delete --build spring-restdocs-${{ github.event.inputs.build-version }}