-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve token instructions. [ci skip]
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,12 +105,18 @@ jobs: | |
1. Obtain a token for the GraalVM Download Service. For this, replace `[email protected]` 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\": \"[email protected]\", \"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\": \"[email protected]\", \"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":"<your-token>","status":"UNVERIFIED"} | ||
``` | ||
|
||
2. Store the value of `<your-token>` 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: | ||
|
||
|