From e9fc8c911c063ea2f3a1bb82031dc3624ec52e3a Mon Sep 17 00:00:00 2001 From: Mark Roberts Date: Fri, 29 Sep 2023 11:37:33 -0500 Subject: [PATCH] Print github agent configure command to try and debug. --- action.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.sh b/action.sh index 1769bf8..89dd827 100755 --- a/action.sh +++ b/action.sh @@ -214,6 +214,8 @@ systemctl daemon-reload systemctl enable shutdown.service gcloud compute instances add-labels ${VM_ID} --zone=${machine_zone} --labels=gh_ready=0 && \\ +echo \"RUNNER_ALLOW_RUNASROOT=1 ./config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --labels ${VM_ID} --unattended ${ephemeral_flag} --disableupdate 2> /var/log/ss_error.txt 1> /var/log/output.txt && \\ +\" > /var/log/cmd.txt && \\ RUNNER_ALLOW_RUNASROOT=1 ./config.sh --url https://github.com/${GITHUB_REPOSITORY} --token ${RUNNER_TOKEN} --labels ${VM_ID} --unattended ${ephemeral_flag} --disableupdate 2> /var/log/ss_error.txt 1> /var/log/output.txt && \\ ./svc.sh install 2>> /var/log/ss_error2.txt 1>> /var/log/output2.txt && \\ ./svc.sh start 2>> /var/log/ss_error3.txt 1>> /var/log/output3.txt && \\