Skip to content

Commit

Permalink
💚 Make branch name inference more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoZosa committed Apr 14, 2022
1 parent f8da8d3 commit 0288ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reset-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
https://github.com/"${META_PROJECT_REPO}" \
--overwrite-if-exists \
--no-input \
--checkout="${GITHUB_REF##*/}" \
--checkout="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}" \
--extra-context="${extra_context}"
env:
extra_context: |
Expand Down Expand Up @@ -119,6 +119,6 @@ jobs:
-C "${COOKIECUTTER_PROJECT_INSTANCE}" \
push --force \
"${COOKIECUTTER_PROJECT_INSTANCE_GIT_URL}" \
HEAD:"${GITHUB_REF##*/}"
HEAD:"${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
env:
COOKIECUTTER_PROJECT_INSTANCE_GIT_URL: "https://${{ env.GITHUB_ACTOR }}:${{ env.GITHUB_TOKEN }}@github.com/${{ env.PROJECT_INSTANCE_REPO }}.git"

0 comments on commit 0288ef6

Please sign in to comment.