Skip to content

Commit

Permalink
npm run package
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitronx committed Oct 21, 2023
1 parent 9c70d8c commit 32bddea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17538,6 +17538,14 @@ Failed to retrieve latest version; falling back to: ${fallbackVersion}`);
core.addPath(path);
core.info(`>>> doctl version v${version} installed to ${path}`);

// Skip authentication if requested
// for workflows where auth isn't necessary (e.g. doctl app spec validate)
var no_auth = core.getInput('no_auth');
if (no_auth.toLowerCase() === 'true') {
core.info('>>> Skipping doctl auth');
return;
}

var token = core.getInput('token', { required: true });
core.setSecret(token);
await exec.exec('doctl auth init -t', [token]);
Expand Down

0 comments on commit 32bddea

Please sign in to comment.