Skip to content

Commit

Permalink
add - runner name var (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddyc authored Dec 18, 2024
1 parent e88d1c0 commit c817ccb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ if [ ! -f .runner ]; then
./config.sh --url "${GITHUB_URL}" --token "${RUNNER_TOKEN}" --unattended --replace
fi

RUNNER_NAME=${RUNNER_NAME:-"default-runner"}

# Trap SIGTERM and SIGINT to allow for cleanup
trap './config.sh remove --unattended && exit 0' SIGTERM SIGINT

# Start the runner
./run.sh
./run.sh

0 comments on commit c817ccb

Please sign in to comment.