Skip to content

Commit

Permalink
fix: merge strategy choice
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Jul 21, 2023
1 parent 191e0f7 commit 16f5b1c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/mirror_docs_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ jobs:

- name: Push to branch
run: |
HISTORY_BRANCH=aztec-bot/docs-git-subrepo-history
if git rev-parse --verify --quiet $HISTORY_BRANCH ; then
# we already have this history, merge it
git checkout $HISTORY_BRANCH
# we avoid anything except git subrepo file updates in th history branch
git merge -X theirs --no-commit ad/fix/mirror-runner
else
# create a new branch based on ours
git checkout -b $HISTORY_BRANCH
fi
git config --global user.email "tech@aztecprotocol.com"
git config --global user.name "AztecBot"
# push to docs repo, commit locally
./scripts/git_subrepo.sh push docs --branch=main
# push new commit to the history branch, overwrite during conflicts
git push origin $HISTORY_BRANCH --force

0 comments on commit 16f5b1c

Please sign in to comment.