Skip to content

Commit

Permalink
Fix ephemeral option passing
Browse files Browse the repository at this point in the history
When not running with an environment file, only pass the ephemeral
option if it was set. This is a bugfix.
  • Loading branch information
efrecon committed Mar 28, 2024
1 parent 0363ba6 commit 560cadf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ EOF
set -- -k "/${RUNNER_VM_ENVDIR}/${_id}.tkn" "$@"
else
set -- \
-e \
-g "$RUNNER_GITHUB" \
-G "$RUNNER_GROUP" \
-i "$_id" \
Expand All @@ -262,6 +261,9 @@ EOF
-S "$RUNNER_SECRET" \
-T "$RUNNER_PAT" \
-u "$RUNNER_USER"
if is_true "$RUNNER_EPHEMERAL"; then
set -- -e "$@"
fi
for _ in $(seq 1 "$RUNNER_VERBOSE"); do
set -- -v "$@"
done
Expand Down

0 comments on commit 560cadf

Please sign in to comment.