Retire Hex package version #1
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
name: Retire Hex package version | |
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 }} | |
REASON: ${{ inputs.reason }} | |
VERSION: ${{ inputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '24' | |
elixir-version: '1.13' | |
- 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 cloudflare_access_ex "$VERSION" "$REASON" --message "$MESSAGE" |