From 31073c3399a791ba84f156c60d53f9bf1f6d0a56 Mon Sep 17 00:00:00 2001 From: dream <13432095+dream-deve@user.noreply.gitee.com> Date: Mon, 19 May 2025 07:25:52 +0000 Subject: [PATCH] update fetch.yml --- .workflow/fetch.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.workflow/fetch.yml b/.workflow/fetch.yml index 4d803d8..613d9e3 100644 --- a/.workflow/fetch.yml +++ b/.workflow/fetch.yml @@ -3,12 +3,12 @@ name: fetch displayName: fetch triggers: trigger: auto - pr: + push: branches: precise: - main schedule: - - cron: '* 0 */3 * * ? *' + - cron: '* */1 * * * ? *' variables: global: - TOKEN @@ -23,6 +23,8 @@ stages: displayName: fetchurl nodeVersion: 21.5.0 commands: + - git clone https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git + - cd migu_video - '# 设置NPM源,提升安装速度' - npm config set registry https://registry.npmmirror.com - '# 执行编译命令 ' @@ -32,8 +34,7 @@ stages: - git add . - '# gitee流水线提交 ' - git diff --quiet && git diff --staged --quiet || git commit -m "Update by Gitee流水线" - - git remote set-url origin https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git - - git push -u origin main + - git push -f https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git main:main strategy: retry: '0' timeout: 2