Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed May 12, 2024
1 parent d3db86c commit 7a24e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/spot-runner-action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ function setupGithubRunners(ip, config) {
// - github actions job starts and ends always bump +ec2InstanceTtl minutes
// - when the amount of started jobs (start_run_* files) equal the amount of finished jobs (end_run_* files), we shutdown in 5 minutes (with a reaper script installed later)
"set -x",
"touch /home/ubuntu/.user-data-started",
"sudo touch ~/.user-data-started",
`cd ~`,
`echo "${bumpShutdown}" > /home/ubuntu/delay_shutdown.sh`,
"chmod +x /home/ubuntu/delay_shutdown.sh",
Expand All @@ -962,7 +962,7 @@ function setupGithubRunners(ip, config) {
` ln -s $(pwd)/../externals ../${runnerNameBase}-$i`,
` pushd ../${runnerNameBase}-$i`,
` echo \${TOKENS[i]} > .runner-token`,
` 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'`,
` 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"
];
Expand Down

0 comments on commit 7a24e49

Please sign in to comment.