From 5b5d0e02b937bd325da63db7746af859f90fecb1 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sun, 27 Apr 2025 10:38:36 +0300 Subject: [PATCH] check sync action Signed-off-by: Vasiliy Tolstov --- .gitea/workflows/job_syncpull.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/job_syncpull.yml b/.gitea/workflows/job_syncpull.yml index 7692c425..aa4f388f 100644 --- a/.gitea/workflows/job_syncpull.yml +++ b/.gitea/workflows/job_syncpull.yml @@ -11,22 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - 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 run: | - git --git-dir=repo remote add --no-tags --fetch --track master upstream-master ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} - git --git-dir=repo merge --allow-unrelated-histories "upstream-master/master" + cd repo + 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 run: | - git --git-dir=repo remote add --no-tags --fetch --track v3 upstream-v3 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} - git --git-dir=repo merge --allow-unrelated-histories "upstream-master/v3" + cd repo + 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 run: | - git --git-dir=repo remote add --no-tags --fetch --track v4 upstream-v4 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} - git --git-dir=repo merge --allow-unrelated-histories "upstream-master/v4" + cd repo + 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 - run: git --git-dir=repo push --all --progress \ No newline at end of file + run: | + cd repo + git push --all --progress \ No newline at end of file