mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-17 15:25:03 +08:00
update update.yml
This commit is contained in:
35
.workflow/update.yml
Normal file
35
.workflow/update.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: '1.0'
|
||||
name: fetch
|
||||
displayName: fetch
|
||||
triggers:
|
||||
trigger: auto
|
||||
schedule:
|
||||
- cron: '* 0 */3 * * ? *'
|
||||
variables:
|
||||
global:
|
||||
- TOKEN
|
||||
stages:
|
||||
- name: fetchurl
|
||||
displayName: fetchurl
|
||||
strategy: naturally
|
||||
trigger: auto
|
||||
steps:
|
||||
- step: build@nodejs
|
||||
name: fetch_url
|
||||
displayName: fetch_url
|
||||
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
|
||||
strategy:
|
||||
retry: '0'
|
||||
timeout: 2
|
||||
Reference in New Issue
Block a user