Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed May 12, 2024
1 parent 084b1f0 commit e5a5b39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/spot-runner-action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,8 @@ function setupGithubRunners(ip, config) {
` ln -s $(pwd)/../externals ../${runnerNameBase}-$i`,
` pushd ../${runnerNameBase}-$i`,
` echo \${TOKENS[i]} > .runner-token`,
` screen -dm ./config.sh --unattended-url https://github.com/${github.context.repo.owner}/${github.context.repo.repo} --token \${TOKENS[i]} --labels ${config.githubActionRunnerLabel} --replace --name ${runnerNameBase}-$i && ./run.sh`,
` screen -dm bash -c './config.sh --unattended-url https://github.com/${github.context.repo.owner}/${github.context.repo.repo} --token \${TOKENS[i]} --labels ${config.githubActionRunnerLabel} --replace --name ${runnerNameBase}-$i && ./run.sh'`,
` popd`,
"done"
];
const tempKeyPath = installSshKey(config.ec2Key);
Expand Down
3 changes: 2 additions & 1 deletion .github/spot-runner-action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ async function setupGithubRunners(ip: string, config: ActionConfig) {
` ln -s $(pwd)/../externals ../${runnerNameBase}-$i`,
` pushd ../${runnerNameBase}-$i`,
` echo \${TOKENS[i]} > .runner-token`,
` screen -dm ./config.sh --unattended-url https://github.com/${github.context.repo.owner}/${github.context.repo.repo} --token \${TOKENS[i]} --labels ${config.githubActionRunnerLabel} --replace --name ${runnerNameBase}-$i && ./run.sh`,
` screen -dm bash -c './config.sh --unattended-url https://github.com/${github.context.repo.owner}/${github.context.repo.repo} --token \${TOKENS[i]} --labels ${config.githubActionRunnerLabel} --replace --name ${runnerNameBase}-$i && ./run.sh'`,
` popd`,
"done"
];
const tempKeyPath = installSshKey(config.ec2Key);
Expand Down

0 comments on commit e5a5b39

Please sign in to comment.