Skip to content

Commit

Permalink
Fix git remote replace
Browse files Browse the repository at this point in the history
Updates git remote replace url command by removing escape character and
switching to using * for delimeter in sed to avoid expansion of argument
that also contains slashes.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
  • Loading branch information
hasheddan committed Oct 23, 2020
1 parent 70fcfd9 commit f508b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Configure Git User
run: |
git config --global credential.helper cache
git config remote.origin.url https://${UPBOUND_BOT_USR}:${UPBOUND_BOT_PSW}@\$(git config --get remote.origin.url | sed -e 's/https:\\/\\///')
git config remote.origin.url https://${UPBOUND_BOT_USR}:${UPBOUND_BOT_PSW}@$(git config --get remote.origin.url | sed -e 's*https:\\*\\//*')
git config user.name "upbound-bot"
git config user.email "info@crossplane.io"
Expand Down

0 comments on commit f508b65

Please sign in to comment.