Skip to content

Commit b409c01

Browse files
committed
Troubleshoot pushing to deployment repos
1 parent 4ae5a7f commit b409c01

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ jobs:
3535
export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/deploy_key"
3636
3737
git remote add sync-repo "git@github.com:${{ env.TARGET_REPO }}.git"
38-
git branch -u "sync-repo/${{ env.TARGET_BRANCH }}"
39-
git push --force
38+
git push --force -u sync-repo ${{ env.RELEASE_CHANNEL }}:${{ env.TARGET_BRANCH }}

.github/workflows/deploy-staging.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ jobs:
3535
export GIT_SSH_COMMAND="ssh -i $HOME/.ssh/deploy_key"
3636
3737
git remote add sync-repo "git@github.com:${{ env.TARGET_REPO }}.git"
38-
git branch -u "sync-repo/${{ env.TARGET_BRANCH }}"
39-
git push --force
38+
git push --force -u sync-repo ${{ env.RELEASE_CHANNEL }}:${{ env.TARGET_BRANCH }}

0 commit comments

Comments
 (0)