Skip to content

Commit cc85ef4

Browse files
committed
Change runner name format
1 parent ab029b5 commit cc85ef4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ EOF
165165
166166
chmod +x /etc/systemd/system/shutdown.sh
167167
168-
su -s /bin/bash -c "cd /actions-runner-1/;/actions-runner-1/config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --name ${VM_ID}-1 --labels ${VM_ID} --unattended --disableupdate" runner
169-
su -s /bin/bash -c "cd /actions-runner-2/;/actions-runner-2/config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --name ${VM_ID}-2 --labels ${VM_ID} --unattended --disableupdate" runner
168+
RUNNER_ID=${VM_ID}-$(date +%s)
169+
su -s /bin/bash -c "cd /actions-runner-1/;/actions-runner-1/config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --name ${RUNNER_ID}-1 --labels ${VM_ID} --unattended --disableupdate" runner
170+
su -s /bin/bash -c "cd /actions-runner-2/;/actions-runner-2/config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --name ${RUNNER_ID}-2 --labels ${VM_ID} --unattended --disableupdate" runner
170171
171172
touch /.github-runner-config-ready
172173

0 commit comments

Comments
 (0)