Files
migu_video/.workflow/fetch.yml
2025-05-18 12:18:19 +08:00

42 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '1.0'
name: fetch
displayName: fetch
triggers:
trigger: auto
schedule:
- cron: '* 0 */3 * * ? *'
stages:
- name: install_deps
displayName: installdeps
strategy: naturally
trigger: auto
executor:
- dream-deve
steps:
- step: build@nodejs
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
strategy:
retry: '0'
timeout: 4
- step:
name: push_repo
displayName: push_repo
commands:
- '# actions提交'
- git config user.name "Gitee Actions"
- git config user.email "actions@githee.com"
- '# echo "开始执行" >> interface.txt.bak'
- git add .
- git diff --quiet && git diff --staged --quiet || git commit -m "Update by Gitee Actions"
- git push
strategy:
retry: '0'
timeout: 1