Skip to content

Commit

Permalink
fix: 🐛
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Augustin <dev@andreas-augustin.org>
  • Loading branch information
AndreasAugustin committed Mar 18, 2024
1 parent 24d62fa commit 71d9de5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SHORT_TEMPLATE_GIT_HASH=$(git rev-parse --short "${TEMPLATE_REMOTE_GIT_HASH}")

export TEMPLATE_GIT_HASH=${SHORT_TEMPLATE_GIT_HASH}
export NEW_BRANCH="${PR_BRANCH_NAME_PREFIX}_${TEMPLATE_GIT_HASH}"
PR_BODY_TMP="${PR_BODY:-"Merge ${SOURCE_REPO_PATH} ${TEMPLATE_GIT_HASH}"}"
: "${PR_BODY:="Merge ${SOURCE_REPO_PATH} ${TEMPLATE_GIT_HASH}"}"
PR_TITLE_TMP="${PR_TITLE:-"upstream merge template repository"}"

debug "TEMPLATE_GIT_HASH ${TEMPLATE_GIT_HASH}"
Expand All @@ -60,7 +60,8 @@ info "PR_BODY ${PR_BODY}"
info "PR_BODY_TMP ${PR_BODY_TMP}"

# shellcheck disable=SC2016
PR_BODY=${PR_BODY_TMP//'${TEMPLATE_GIT_HASH}'/"${TEMPLATE_GIT_HASH}"}
PR_BODY=${PR_BODY//'${TEMPLATE_GIT_HASH}'/"${TEMPLATE_GIT_HASH}"}
PR_BODY=${PR_BODY//'${SOURCE_REPO}'/"${SOURCE_REPO}"}
info "SOURCE_REPO ${SOURCE_REPO}"
export TMP="${PR_BODY}"
info "TMP ${TMP}"
Expand Down

0 comments on commit 71d9de5

Please sign in to comment.