From 9abc296ab713136cfcc3accc119448897cba7595 Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Tue, 26 Sep 2023 15:28:39 +0200 Subject: [PATCH] [PLATFORM-1245]: Add retire workflow (#173) --- .github/workflows/retire.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/retire.yml diff --git a/.github/workflows/retire.yml b/.github/workflows/retire.yml new file mode 100644 index 00000000..62bd3567 --- /dev/null +++ b/.github/workflows/retire.yml @@ -0,0 +1,43 @@ +on: + workflow_dispatch: + inputs: + reason: + description: Retire reason + required: true + default: invalid + type: choice + options: + - renamed + - deprecated + - security + - invalid + - other + message: + description: Retire message + required: true + default: Version has a breaking bug + type: string + version: + description: Version to retire + required: true + default: x.y.z + type: string + +jobs: + retire: + runs-on: ubuntu-latest + env: + MESSAGE: ${{ inputs.message }} + VERSION: ${{ inputs.version }} + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + otp-version: '25' + elixir-version: '1.15' + - run: echo "Attempting to retire version $VERSION" + - run: mix hex.config api_key "$HEX_AUTH_KEY" + env: + HEX_AUTH_KEY: ${{ secrets.HEX_AUTH_KEY }} + - run: mix hex.user whoami + - run: mix hex.retire prima_auth0_ex $VERSION --message $MESSAGE