update fetch.yml

This commit is contained in:
dream
2025-05-19 07:25:52 +00:00
committed by Gitee
parent a195fdaf5b
commit 31073c3399

View File

@@ -3,12 +3,12 @@ name: fetch
displayName: fetch displayName: fetch
triggers: triggers:
trigger: auto trigger: auto
pr: push:
branches: branches:
precise: precise:
- main - main
schedule: schedule:
- cron: '* 0 */3 * * ? *' - cron: '* */1 * * * ? *'
variables: variables:
global: global:
- TOKEN - TOKEN
@@ -23,6 +23,8 @@ stages:
displayName: fetchurl displayName: fetchurl
nodeVersion: 21.5.0 nodeVersion: 21.5.0
commands: commands:
- git clone https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git
- cd migu_video
- '# 设置NPM源提升安装速度' - '# 设置NPM源提升安装速度'
- npm config set registry https://registry.npmmirror.com - npm config set registry https://registry.npmmirror.com
- '# 执行编译命令 ' - '# 执行编译命令 '
@@ -32,8 +34,7 @@ stages:
- git add . - git add .
- '# gitee流水线提交 ' - '# gitee流水线提交 '
- git diff --quiet && git diff --staged --quiet || git commit -m "Update by 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 -f https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git main:main
- git push -u origin main
strategy: strategy:
retry: '0' retry: '0'
timeout: 2 timeout: 2