-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
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 |