From cac017e3878411902fea7fc3a5822114cb1b363e Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Wed, 24 Jan 2024 10:49:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=B8=BB=E5=8A=A8=E6=8E=A8=E9=80=81mi?= =?UTF-8?q?rror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-mirror.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/sync-mirror.yml b/.github/workflows/sync-mirror.yml index f908f31..fe82ff4 100644 --- a/.github/workflows/sync-mirror.yml +++ b/.github/workflows/sync-mirror.yml @@ -9,6 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 + fetch-tags: true - run: | mkdir -p ~/.ssh ssh-keyscan gitlab.bangbang93.com >> ~/.ssh/known_hosts @@ -16,5 +19,6 @@ jobs: chmod 600 ~/.ssh/id_rsa git remote add gitlab git@gitlab.bangbang93.com:bmclapi/openbmclapi.git git push gitlab HEAD:master --force + git push gitlab --tags --force env: MIRROR_SSH_KEY: ${{ secrets.MIRROR_SSH_KEY }}