diff --git a/.workflow/fetch.yml b/.workflow/fetch.yml index 58916ec..b7341ba 100644 --- a/.workflow/fetch.yml +++ b/.workflow/fetch.yml @@ -17,16 +17,15 @@ stages: name: npm_install displayName: deps_install nodeVersion: 21.5.0 - commands: - - '# 设置NPM源,提升安装速度' - - npm config set registry https://registry.npmmirror.com - - '# 执行编译命令' - - npm install && node fetchURLByWasm.js - - git config user.name "Gitee流水线" - - git config user.email "actions@githee.com" - - git add . - - git diff --quiet && git diff --staged --quiet || git commit -m "Update by Gitee流水线" - - git push + commands: | + npm config set registry https://registry.npmmirror.com + && npm install + && node fetchURLByWasm.js + && git config user.name "Gitee流水线" + && git config user.email "actions@githee.com" + && git add . + && git diff --quiet && git diff --staged --quiet || git commit -m "Update by Gitee流水线" + && git push strategy: retry: '0' timeout: 5