Skip to content

Commit

Permalink
running in unattended and replace old runner
Browse files Browse the repository at this point in the history
  • Loading branch information
xprotocol-bot committed Oct 27, 2023
1 parent e764026 commit 44001f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161252,7 +161252,9 @@ function start_runner {
--url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} \
--token $\{RUNNER_TOKEN\} \
--labels "$\{INSTANCE_ID\},$\{RUNNER_NAME\},${generalLabels}" \
--name "$\{RUNNER_NAME\}"'
--name "$\{RUNNER_NAME\}" \
--unattended \
--replace'

echo "Starting runner"
su - "action-user" -w RUNNER_HOME -c bash -c "cd $\{RUNNER_HOME\} && ./run.sh"
Expand Down
4 changes: 3 additions & 1 deletion src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ function start_runner {
--url https://github.com/${config.githubContext.owner}/${config.githubContext.repo} \
--token $\{RUNNER_TOKEN\} \
--labels "$\{INSTANCE_ID\},$\{RUNNER_NAME\},${generalLabels}" \
--name "$\{RUNNER_NAME\}"'
--name "$\{RUNNER_NAME\}" \
--unattended \
--replace'
echo "Starting runner"
su - "action-user" -w RUNNER_HOME -c bash -c "cd $\{RUNNER_HOME\} && ./run.sh"
Expand Down

0 comments on commit 44001f7

Please sign in to comment.