Skip to content

Commit

Permalink
update index
Browse files Browse the repository at this point in the history
  • Loading branch information
arielly-parussulo committed Apr 27, 2023
1 parent c9055a8 commit d1813bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62811,7 +62811,7 @@ function buildUserDataScript(githubRegistrationToken, label) {
'#!/bin/bash',
`cd "${config.input.runnerHomeDir}"`,
'export RUNNER_ALLOW_RUNASROOT=1',
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label}`,
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label}`,
'./run.sh',
];
} else {
Expand All @@ -62822,7 +62822,7 @@ function buildUserDataScript(githubRegistrationToken, label) {
'curl -O -L https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
'tar xzf ./actions-runner-linux-${RUNNER_ARCH}-2.299.1.tar.gz',
'export RUNNER_ALLOW_RUNASROOT=1',
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label}`,
`./config.sh --url ${config.github.url} --token ${githubRegistrationToken} --labels ${label} --name ${label}`,
'./run.sh',
];
}
Expand All @@ -62833,6 +62833,7 @@ async function startEc2Instance(label, githubRegistrationToken) {

const userData = buildUserDataScript(githubRegistrationToken, label);

core.info(userData)
const params = {
ImageId: config.input.ec2ImageId,
InstanceType: config.input.ec2InstanceType,
Expand Down

0 comments on commit d1813bf

Please sign in to comment.