-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLATFORM-1245]: Add retire workflow (#173)
- Loading branch information
1 parent
7af4d44
commit 9abc296
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |