Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148368,7 +148368,7 @@ const core = __nccwpck_require__(7484);
const config = __nccwpck_require__(1283);

// User data scripts are run as the root user
function buildUserDataScript(githubRegistrationToken, label, idx) {
function buildUserDataScript(githubRegistrationToken, label) {
if (config.input.runnerHomeDir) {
// If runner home directory is specified, we expect the actions-runner software (and dependencies)
// to be pre-installed in the AMI, so we simply cd into that directory and then start the runner
Expand All @@ -148392,8 +148392,8 @@ mkdir actions-runner && cd actions-runner
echo "${config.input.preRunnerScript}" > pre-runner-script.sh
source pre-runner-script.sh
case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=\${ARCH}
curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz
tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz
curl -O -L https://github.com/actions/runner/releases/download/v2.338.0/actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz
tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz
cd ..
export RUNNER_ALLOW_RUNASROOT=1

Expand Down Expand Up @@ -148435,7 +148435,6 @@ async function startEc2Instance(label, githubRegistrationToken) {
UserData: Buffer.from(userData).toString('base64'),
SubnetId: config.input.subnetId,
SecurityGroupIds: [config.input.securityGroupId],
SubnetId: config.input.subnetId,
IamInstanceProfile: { Name: config.input.iamRoleName },
TagSpecifications: config.tagSpecifications,
InstanceMarketOptions: buildMarketOptions(),
Expand Down
7 changes: 3 additions & 4 deletions src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const core = require('@actions/core');
const config = require('./config');

// User data scripts are run as the root user
function buildUserDataScript(githubRegistrationToken, label, idx) {
function buildUserDataScript(githubRegistrationToken, label) {
if (config.input.runnerHomeDir) {
// If runner home directory is specified, we expect the actions-runner software (and dependencies)
// to be pre-installed in the AMI, so we simply cd into that directory and then start the runner
Expand All @@ -28,8 +28,8 @@ mkdir actions-runner && cd actions-runner
echo "${config.input.preRunnerScript}" > pre-runner-script.sh
source pre-runner-script.sh
case $(uname -m) in aarch64) ARCH="arm64" ;; amd64|x86_64) ARCH="x64" ;; esac && export RUNNER_ARCH=\${ARCH}
curl -O -L https://github.com/actions/runner/releases/download/v2.313.0/actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz
tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.313.0.tar.gz
curl -O -L https://github.com/actions/runner/releases/download/v2.338.0/actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz
tar xzf ./actions-runner-linux-\${RUNNER_ARCH}-2.338.0.tar.gz
cd ..
export RUNNER_ALLOW_RUNASROOT=1

Expand Down Expand Up @@ -71,7 +71,6 @@ async function startEc2Instance(label, githubRegistrationToken) {
UserData: Buffer.from(userData).toString('base64'),
SubnetId: config.input.subnetId,
SecurityGroupIds: [config.input.securityGroupId],
SubnetId: config.input.subnetId,
IamInstanceProfile: { Name: config.input.iamRoleName },
TagSpecifications: config.tagSpecifications,
InstanceMarketOptions: buildMarketOptions(),
Expand Down
Loading