Skip to content

Commit

Permalink
Drop support for --once
Browse files Browse the repository at this point in the history
Ref #1196
  • Loading branch information
mumoshu committed Jun 29, 2022
1 parent 8161136 commit d652de1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions runner/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,6 @@ if [ -z "${UNITTEST:-}" ] && [ -e ./externalstmp ]; then
mv ./externalstmp/* ./externals/
fi

args=()
if [ "${RUNNER_FEATURE_FLAG_ONCE:-}" == "true" -a "${RUNNER_EPHEMERAL}" == "true" ]; then
args+=(--once)
log.warning 'Passing --once is deprecated and will be removed as an option' \
'from the image and actions-runner-controller at the release of 0.25.0.' \
'Upgrade to GHES => 3.3 to continue using actions-runner-controller. If' \
'you are using github.com ignore this warning.'
fi

# Unset entrypoint environment variables so they don't leak into the runner environment
unset RUNNER_NAME RUNNER_REPO RUNNER_TOKEN STARTUP_DELAY_IN_SECONDS DISABLE_WAIT_FOR_DOCKER

Expand All @@ -164,4 +155,4 @@ unset RUNNER_NAME RUNNER_REPO RUNNER_TOKEN STARTUP_DELAY_IN_SECONDS DISABLE_WAIT
if [ -z "${UNITTEST:-}" ]; then
mapfile -t env </etc/environment
fi
exec env -- "${env[@]}" ./run.sh "${args[@]}"
exec env -- "${env[@]}" ./run.sh

0 comments on commit d652de1

Please sign in to comment.