Skip to content

Commit

Permalink
fix: additional-args does not accept quoted string (#67)
Browse files Browse the repository at this point in the history
for example, `additional-args: "--merge -d -b '[skip ci]'"`

Co-authored-by: marboledacci <[email protected]>
  • Loading branch information
takuo and marboledacci authored Dec 17, 2024
1 parent f1ecf63 commit 3c30640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/pr-merge.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
branch="$(eval printf '%s' "$ORB_EVAL_BRANCH")"
additional_args="$(eval printf '%s\\n' "$ORB_EVAL_ADDITIONAL_ARGS")"
readarray -t additional_args < <(eval "set -- $ORB_EVAL_ADDITIONAL_ARGS; printf '%s\n' \"\$@\"")
hostname="$(eval printf '%s' "$ORB_EVAL_HOSTNAME")"
repo="$(eval printf '%s' "$ORB_EVAL_REPO")"
token="${!ORB_ENV_TOKEN}"
Expand All @@ -21,5 +21,5 @@ set -x
# shellcheck disable=SC2086
gh pr merge \
$branch $repo \
$additional_args
"${additional_args[@]}"
set +x

0 comments on commit 3c30640

Please sign in to comment.