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

40 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: '* 1 */3 * * ? *'
variables:
global:
- TOKEN
stages:
- name: fetchurl
displayName: fetchurl
strategy: naturally
trigger: auto
executor: []
steps:
- step: build@nodejs
name: fetchurl
displayName: fetchurl
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 .
- '# 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
caches: []
notify: []
strategy:
retry: '0'
timeout: 2
strategy: {}