Skip to content

Commit

Permalink
Only pass --repo-head-branch if env var is set & non-empty (#57)
Browse files Browse the repository at this point in the history
* default repo-head-branch to

* only add --repo-head-branch if var is set and non-empty
  • Loading branch information
max-trunk authored Nov 11, 2024
1 parent e67a2e1 commit 2e206f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if [[ $# -eq 0 ]]; then
${XCRESULT_PATH:+--xcresult-path "${XCRESULT_PATH}"} \
--org-url-slug "${ORG_URL_SLUG}" \
--token "${TOKEN}" \
--repo-head-branch "${REPO_HEAD_BRANCH}" \
${REPO_HEAD_BRANCH:+--repo-head-branch "${REPO_HEAD_BRANCH}"} \
--repo-root "${REPO_ROOT}" \
--team "${TEAM}" \
--tags "${TAGS}" \
Expand All @@ -91,7 +91,7 @@ else
${XCRESULT_PATH:+--xcresult-path "${XCRESULT_PATH}"} \
--org-url-slug "${ORG_URL_SLUG}" \
--token "${TOKEN}" \
--repo-head-branch "${REPO_HEAD_BRANCH}" \
${REPO_HEAD_BRANCH:+--repo-head-branch "${REPO_HEAD_BRANCH}"} \
--repo-root "${REPO_ROOT}" \
--team "${TEAM}" \
--tags "${TAGS}" \
Expand Down

0 comments on commit 2e206f0

Please sign in to comment.