-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (43 loc) · 1.12 KB
/
retire.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 prima_auth0_ex "$VERSION" "$REASON" --message "$MESSAGE"