Skip to content

Commit

Permalink
fix: logging URL & token info
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Aug 30, 2023
1 parent e69fedc commit 45aba8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ async function setup() {
// CLI config?
const url = core.getInput('url')
const token = core.getInput('token')
console.log(`Ontrack URL set to ${url}`)
console.log(`Ontrack token set to ${token ? token.length : 0} characters`)
if (url && token) {
let name = core.getInput('name')
if (!name) name = 'prod'
Expand All @@ -101,7 +103,6 @@ async function setup() {
}

async function configureCLI(url, token, name, cliDisabled) {
console.log(`Connecting to ${url}...`)
await exec.exec('ontrack-cli', ['config', 'create', name, url, '--token', token])
// Disabling the CLI
if (cliDisabled) {
Expand Down

0 comments on commit 45aba8b

Please sign in to comment.