Skip to content

Commit

Permalink
Fix HTTPS endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaus67 committed Nov 3, 2023
1 parent 9a3408a commit 4e401bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ async function run(): Promise<void> {

// Additionally, also set the Central API endpoint as environment variable for other jobs to use.
// This does not need to be marked as a secret.
core.exportVariable('ROX_ENDPOINT', parsedURL.toString())
// The HTTPS scheme has to be stripped, as this is not expected to be set by roxctl for the endpoint.
core.exportVariable('ROX_ENDPOINT', parsedURL.toString().replace("https://", ""))

core.info(
'Successfully set the variable ROX_API_TOKEN and ROX_ENDPOINT to the access token and ' +
Expand Down

0 comments on commit 4e401bf

Please sign in to comment.