Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -11,22 +11,27 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
run: git clone --bare --filter=tree:0 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} repo
|
run: git clone --depth=10 --filter=tree:0 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} repo
|
||||||
|
|
||||||
- name: track master
|
- name: track master
|
||||||
run: |
|
run: |
|
||||||
git --git-dir=repo remote add --no-tags --fetch --track master upstream-master ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
cd repo
|
||||||
git --git-dir=repo merge --allow-unrelated-histories "upstream-master/master"
|
git remote add --no-tags --fetch --track master upstream-master ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
||||||
|
git merge --allow-unrelated-histories "upstream-master/master"
|
||||||
|
|
||||||
- name: track v3
|
- name: track v3
|
||||||
run: |
|
run: |
|
||||||
git --git-dir=repo remote add --no-tags --fetch --track v3 upstream-v3 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
cd repo
|
||||||
git --git-dir=repo merge --allow-unrelated-histories "upstream-master/v3"
|
git remote add --no-tags --fetch --track v3 upstream-v3 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
||||||
|
git merge --allow-unrelated-histories "upstream-master/v3"
|
||||||
|
|
||||||
- name: track v4
|
- name: track v4
|
||||||
run: |
|
run: |
|
||||||
git --git-dir=repo remote add --no-tags --fetch --track v4 upstream-v4 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
cd repo
|
||||||
git --git-dir=repo merge --allow-unrelated-histories "upstream-master/v4"
|
git remote add --no-tags --fetch --track v4 upstream-v4 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
|
||||||
|
git merge --allow-unrelated-histories "upstream-master/v4"
|
||||||
|
|
||||||
- name: push
|
- name: push
|
||||||
run: git --git-dir=repo push --all --progress
|
run: |
|
||||||
|
cd repo
|
||||||
|
git push --all --progress
|
Reference in New Issue
Block a user