Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed May 8, 2024
1 parent 78cc03d commit 6073535
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/sync-pro.yml
Expand Up @@ -24,15 +24,14 @@ jobs:
git config user.email '<>'
PUSH_BRANCH=main
PUSH_FORCE=''
git fetch $DOWNSTREAM main
git checkout $DOWNSTREAM/main -- yarn.lock # Checkout yarn.lock from downstream before merging
git pull --no-rebase --no-edit $DOWNSTREAM main || {
# Got merge conflicts, so fall back to upstream branch
git merge --abort
PUSH_BRANCH=upstream
PUSH_FORCE=--force
}
git checkout --theirs yarn.lock # Discard local changes to yarn.lock
git add .
git commit -m "Automatic commit: Discard local changes to yarn.lock"
git push $DOWNSTREAM HEAD:$PUSH_BRANCH $PUSH_FORCE
env:
DOWNSTREAM: https://${{secrets.DOWNSTREAM_REPO_GITHUB_CREDENTIALS}}@github.com/plate-pro/plate-pro.git
Expand Down

0 comments on commit 6073535

Please sign in to comment.