-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: workflows: remove rebase-merge folder before rebase
With gitv2.26, git rebase uses "git merge" mechanism instead of "git apply". This creates a rebase-merge folder in .git, in case of rebase conflict. This caused problems in self hosted runners due to old rebase-merge folder. This commit deletes this folder before git rebase action. Signed-off-by: Mert Ekren <[email protected]>
- Loading branch information
Showing
9 changed files
with
14 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 |
---|---|---|
|
@@ -77,6 +77,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Zephyr Bot" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --pretty=oneline | head -n 10 | ||
|
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 |
---|---|---|
|
@@ -61,6 +61,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Zephyr Bot" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --pretty=oneline | head -n 10 | ||
|
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 |
---|---|---|
|
@@ -40,6 +40,8 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
git remote -v | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
source zephyr-env.sh | ||
|
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
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 |
---|---|---|
|
@@ -94,6 +94,8 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --graph --oneline HEAD...${PR_HEAD} | ||
|
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 |
---|---|---|
|
@@ -45,6 +45,8 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --graph --oneline HEAD...${PR_HEAD} | ||
|
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 |
---|---|---|
|
@@ -42,6 +42,8 @@ jobs: | |
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --graph --oneline HEAD...${PR_HEAD} | ||
|
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 |
---|---|---|
|
@@ -67,6 +67,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Zephyr Bot" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --pretty=oneline | head -n 10 | ||
|
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 |
---|---|---|
|
@@ -84,6 +84,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Zephyr Builder" | ||
rm -fr ".git/rebase-apply" | ||
rm -fr ".git/rebase-merge" | ||
git rebase origin/${BASE_REF} | ||
git clean -f -d | ||
git log --pretty=oneline | head -n 10 | ||
|