Use rebase for fork sync
This commit is contained in:
parent
022b3cbf19
commit
618fc1f7e1
6
.github/workflows/fork-sync.yml
vendored
6
.github/workflows/fork-sync.yml
vendored
@ -37,10 +37,8 @@ jobs:
|
|||||||
if: ${{inputs.tags || steps.fetch-upstream-tags.outputs.NEW_TAGS}}
|
if: ${{inputs.tags || steps.fetch-upstream-tags.outputs.NEW_TAGS}}
|
||||||
run: |
|
run: |
|
||||||
for TAG in ${NEW_TAGS}; do
|
for TAG in ${NEW_TAGS}; do
|
||||||
git checkout -b release/${TAG} ${TAG}
|
git checkout -b release/${TAG} main
|
||||||
git rm .github/workflows/*
|
git rebase -onto ${TAG} upstream/main
|
||||||
git commit -m "Remove existing workflows"
|
|
||||||
git rev-list --no-merges --reverse main ^upstream/main | git cherry-pick --stdin --keep-redundant-commits
|
|
||||||
done
|
done
|
||||||
for TAG in ${NEW_TAGS}; do
|
for TAG in ${NEW_TAGS}; do
|
||||||
git push -u origin release/${TAG}
|
git push -u origin release/${TAG}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user