-
Notifications
You must be signed in to change notification settings - Fork 187
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
4 additions
and
5 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 |
---|---|---|
|
@@ -41,16 +41,15 @@ jobs: | |
# https://github.com/robotology/gh-action-nightly-merge/blob/master/entrypoint.sh | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
git remote set-url origin https://x-access-token:[email protected]/$GITHUB_REPOSITORY | ||
git remote set-url origin https://x-access-token:${!PUSH_TOKEN}@github.com/$GITHUB_REPOSITORY.git | ||
git config --global user.name "$CONFIG_USERNAME" | ||
git config --global user.email "$CONFIG_EMAIL" | ||
git fetch origin $MERGE_HEAD | ||
git checkout $MERGE_HEAD || git checkout -b $MERGE_HEAD origin/$MERGE_HEAD | ||
(git checkout $MERGE_HEAD && git pull) | ||
git fetch origin $MERGE_BASE | ||
git checkout $MERGE_BASE || git checkout -b $MERGE_BASE origin/$MERGE_BASE | ||
(git checkout $MERGE_HEAD && git pull) | ||
git merge $MERGE_ARGS $MERGE_HEAD | ||
# git push origin $MERGE_BASE | ||
git push | ||
git push origin $MERGE_BASE |