Skip to content

Commit

Permalink
remove github runner config before reconfiguring
Browse files Browse the repository at this point in the history
  • Loading branch information
George Penkov committed May 5, 2022
1 parent 7411941 commit a5596e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55150,7 +55150,7 @@ async function startEc2Instance(label, githubRegistrationToken) {
userData.push(`./config.sh --url https://github.com/${config.githubContext.owner} --token ${githubRegistrationToken} --labels ${label}`);
userData.push('./run.sh');
} else {
userData.push('cd /actions-runner');
userData.push('cd /actions-runner && rm -f .runner');
userData.push('export RUNNER_ALLOW_RUNASROOT=1');
userData.push(`./config.sh --url https://github.com/${config.githubContext.owner} --token ${githubRegistrationToken} --labels ${label}`);
userData.push('./run.sh');
Expand Down
2 changes: 1 addition & 1 deletion src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function startEc2Instance(label, githubRegistrationToken) {
userData.push(`./config.sh --url https://github.com/${config.githubContext.owner} --token ${githubRegistrationToken} --labels ${label}`);
userData.push('./run.sh');
} else {
userData.push('cd /actions-runner');
userData.push('cd /actions-runner && rm -f .runner');
userData.push('export RUNNER_ALLOW_RUNASROOT=1');
userData.push(`./config.sh --url https://github.com/${config.githubContext.owner} --token ${githubRegistrationToken} --labels ${label}`);
userData.push('./run.sh');
Expand Down

0 comments on commit a5596e1

Please sign in to comment.