Skip to content

Commit b13d006

Browse files
committed
Fix action that publishes to SDKman
1 parent 56b59cd commit b13d006

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: .github/actions/publish-to-sdkman/action.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ inputs:
44
sdkman-consumer-key:
55
description: 'Key for publishing to SDKMAN!'
66
required: true
7-
sdkman-consumer-secret:
8-
description: 'Secret for publishing to SDKMAN!'
7+
sdkman-consumer-token:
8+
description: 'Token for publishing to SDKMAN!'
99
required: true
1010
spring-boot-version:
1111
description: 'The version to publish'
@@ -20,19 +20,19 @@ runs:
2020
- shell: bash
2121
run: >
2222
curl -X POST \
23-
-H "Consumer-Key: ${{ inputs.sdkman-consumer-key }}"
24-
-H "Consumer-Token: ${{ inputs.sdkman-consumer-token }}"
25-
-H "Content-Type: application/json"
26-
-H "Accept: application/json"
27-
-d '{"candidate": "springboot", "version": "${{ inputs.spring-boot-version }}", "url": "${{ format('https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/{0}/spring-boot-cli-{0}-bin.zip', inputs.spring-boot-version)"}'
23+
-H "Consumer-Key: ${{ inputs.sdkman-consumer-key }}" \
24+
-H "Consumer-Token: ${{ inputs.sdkman-consumer-token }}" \
25+
-H "Content-Type: application/json" \
26+
-H "Accept: application/json" \
27+
-d '{"candidate": "springboot", "version": "${{ inputs.spring-boot-version }}", "url": "${{ format('https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/{0}/spring-boot-cli-{0}-bin.zip', inputs.spring-boot-version) }}"}' \
2828
https://vendors.sdkman.io/release
2929
- shell: bash
3030
if: ${{ inputs.make-default }}
3131
run: >
3232
curl -X POST \
33-
-H "Consumer-Key: ${{ inputs.sdkman-consumer-key }}"
34-
-H "Consumer-Token: ${{ inputs.sdkman-consumer-token }}"
35-
-H "Content-Type: application/json"
36-
-H "Accept: application/json"
37-
-d '{"candidate": "springboot", "version": "${{ inputs.spring-boot-version }}"}'
33+
-H "Consumer-Key: ${{ inputs.sdkman-consumer-key }}" \
34+
-H "Consumer-Token: ${{ inputs.sdkman-consumer-token }}" \
35+
-H "Content-Type: application/json" \
36+
-H "Accept: application/json" \
37+
-d '{"candidate": "springboot", "version": "${{ inputs.spring-boot-version }}"}' \
3838
https://vendors.sdkman.io/default

0 commit comments

Comments
 (0)