Skip to content

Commit

Permalink
different env
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Oct 3, 2024
1 parent ed27513 commit fbf41b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26968,9 +26968,9 @@ function parseBuildId(stdout) {
if (config.ref) {
startArgs.push('--ref', config.ref);
}
if (process.env.GITHUB_TOKEN) {
console.log('using GITHUB_TOKEN from environment as checkout token');
startArgs.push('--token', process.env.GITHUB_TOKEN);
if (process.env.ACTIONS_RUNTIME_TOKEN) {
console.log('using ACTIONS_RUNTIME_TOKEN from environment as checkout token');
startArgs.push('--token', process.env.ACTIONS_RUNTIME_TOKEN);
}
const spawnRet = spawnSync(cliPath, startArgs);
checkSpawnSync(spawnRet);
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ function parseBuildId(stdout) {
if (config.ref) {
startArgs.push('--ref', config.ref);
}
if (process.env.GITHUB_TOKEN) {
console.log('using GITHUB_TOKEN from environment as checkout token');
startArgs.push('--token', process.env.GITHUB_TOKEN);
if (process.env.ACTIONS_RUNTIME_TOKEN) {
console.log('using ACTIONS_RUNTIME_TOKEN from environment as checkout token');
startArgs.push('--token', process.env.ACTIONS_RUNTIME_TOKEN);
}
const spawnRet = spawnSync(cliPath, startArgs);
checkSpawnSync(spawnRet);
Expand Down

0 comments on commit fbf41b4

Please sign in to comment.