Skip to content

Commit b691eb8

Browse files
author
Ryan Williams
authored
fix: Separate GHA and bash substitution (#356)
1 parent c347bb1 commit b691eb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/actions/update-gitops/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ runs:
9595
if: inputs.CREATE_PR == 'true'
9696
working-directory: gitops
9797
run: |
98-
BRANCH_NAME="deploy-${{ inputs.SERVICE_NAME }}-${{ inputs.IMAGE_TAG//:/- }}"
99-
git push -u origin $BRANCH_NAME
98+
BRANCH_NAME="deploy-${{ inputs.SERVICE_NAME }}-${{ inputs.IMAGE_TAG }}"
99+
BRANCH_NAME=${BRANCH_NAME//:/-}
100+
git push -u origin "$BRANCH_NAME"
100101
gh pr create --title "Update image tag for ${{ inputs.SERVICE_NAME }}" --body "Update image tag for ${{ inputs.SERVICE_NAME }}"

0 commit comments

Comments
 (0)