Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLATFORM-1245]: Add retire workflow #173

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/retire.yml
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
thobianchi marked this conversation as resolved.
Show resolved Hide resolved
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 }}
thobianchi marked this conversation as resolved.
Show resolved Hide resolved
- run: mix hex.user whoami
- run: mix hex.retire prima_auth0_ex $VERSION --message $MESSAGE