Skip to content

Commit

Permalink
fix wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 committed Sep 21, 2023
1 parent 09763af commit b5e29b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions github-runner-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ printf "Working Directory: %s\n\t" "$WORK_DIR"
# printf "Executing GitHub Runner for %s\n" "$GITHUB_REPOSITORY"
# ./actions-runner/run.sh

printf "Diagnostic: $GITHUB_PAT - $REGISTRATION_TOKEN_API_URL"
printf "Diagnostic: $GITHUB_PAT - $REGISTRATION_TOKEN_API_URL\n"

# Retrieve a short lived runner registration token using the PAT
REGISTRATION_TOKEN="$(curl -X POST -fsSL \
Expand All @@ -63,14 +63,14 @@ REGISTRATION_TOKEN="$(curl -X POST -fsSL \
"$REGISTRATION_TOKEN_API_URL" \
| jq -r '.token')"

printf "Diagnostic: $GITHUB_REPOSITORY; $REGISTRATION_TOKEN;"
printf "Diagnostic: $REPO_URL; $REGISTRATION_TOKEN;\n"

ls
ls ./actions-runner
ls ./actions/runner/bin

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

printf "config run successfully"
printf "config run successfully\n"

./actions-runner/run.sh

0 comments on commit b5e29b5

Please sign in to comment.