From 1614e436d2828781c078156928ebef702b62afdb Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Mon, 14 Oct 2024 16:57:03 +0200 Subject: [PATCH] Improve token instructions. [ci skip] --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8c8d729..82d987d 100644 --- a/README.md +++ b/README.md @@ -105,12 +105,18 @@ jobs: 1. Obtain a token for the GraalVM Download Service. For this, replace `your@email.com` with your email address and run the following `curl` command: ```bash -$ curl -sS -X POST "https://gds.oracle.com/api/20220101/licenseAcceptance" \ - -H "Content-Type: application/json" \ - -d "{ \"email\": \"your@email.com\", \"licenseId\": \"D53FA58D12817B3CE0530F15000A74CA\", \"type\": \"GENERATE_TOKEN_AND_ACCEPT_LICENSE\"}" +curl -sS -X POST "https://gds.oracle.com/api/20220101/licenseAcceptance" \ + -H "Content-Type: application/json" \ + -d "{ \"email\": \"your@email.com\", \"licenseId\": \"D53FA58D12817B3CE0530F15000A74CA\", \"type\": \"GENERATE_TOKEN_AND_ACCEPT_LICENSE\"}" ``` -2. Store this token as a [GitHub Action secret][gha-secrets]. For the following template, we use the name `GDS_TOKEN`. +The response should look like this: + +```json +{"token":"","status":"UNVERIFIED"} +``` + +2. Store the value of `` as a [GitHub Action secret][gha-secrets]. For the following template, we use the name `GDS_TOKEN`. 3. Check your emails and accept the license to activate the token. 4. Use `java-version: '17'` (or a specific version such as `17.0.13`) and provide the `GDS_TOKEN` as shown in the following template: