Skip to content

Commit

Permalink
restore some log cuz unknown (new) error
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 committed Sep 21, 2023
1 parent 0e0b7e7 commit 7fe776f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions github-runner-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
printf "Before token: $REPO_URL; $GITHUB_PAT; $REGISTRATION_TOKEN_API_URL;\n"

# Retrieve a short lived runner registration token using the PAT
REGISTRATION_TOKEN="$(curl -X POST -fsSL \
-H 'Accept: application/vnd.github.v3+json' \
Expand All @@ -6,11 +8,10 @@ REGISTRATION_TOKEN="$(curl -X POST -fsSL \
"$REGISTRATION_TOKEN_API_URL" \
| jq -r '.token')"

./actions-runner/config.sh \
--url $REPO_URL \
--token $REGISTRATION_TOKEN \
--unattended \
--ephemeral \
--disableupdate
printf "After token: $REGISTRATION_TOKEN;\n"

./actions-runner/config.sh --url $REPO_URL --token $REGISTRATION_TOKEN --unattended --ephemeral --disableupdate

printf "config run successfully\n"

./actions-runner/run.sh

0 comments on commit 7fe776f

Please sign in to comment.