-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
30 lines (30 loc) · 963 Bytes
/
action.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
name: SDKMAN! Vendor Release Action
description: Release new Candidate versions via SDKMAN!'s Vendor API.
inputs:
consumer-key:
description: The unique identifier of the Consumer
required: true
consumer-token:
description: The API token of the Consumer
required: true
candidate:
description: The name of the Candidate to release
required: true
version:
description: The version of the Candidate to release
required: true
url:
description: The URL pointing to the binary
required: true
runs:
using: 'composite'
steps:
- id: sdkman-vendor
shell: bash
run: |
curl -X POST \
-H 'Consumer-Key: ${{inputs.consumer-key}}' \
-H 'Consumer-Token: ${{inputs.consumer-token}}' \
-H 'Content-Type: application/json' \
-d '{"candidate": "${{inputs.candidate}}", "version": "${{inputs.version}}", "url": "${{inputs.url}"}}' \
https://vendors.sdkman.io/release