mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-18 15:55:10 +08:00
更新
This commit is contained in:
@@ -1,47 +1,39 @@
|
||||
version: '1.0'
|
||||
name: fetch
|
||||
displayName: fetch
|
||||
name: update
|
||||
displayName: update
|
||||
triggers:
|
||||
trigger: auto
|
||||
pr:
|
||||
branches:
|
||||
precise:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '* 0 */2 * * ? *'
|
||||
- cron: '* 0 */6 * * ? *'
|
||||
variables:
|
||||
global:
|
||||
- GITHUB_TOKEN
|
||||
- TOKEN
|
||||
stages:
|
||||
- name: fetchurl
|
||||
displayName: fetchurl
|
||||
- name: update
|
||||
displayName: 更新
|
||||
strategy: naturally
|
||||
trigger: auto
|
||||
executor: []
|
||||
steps:
|
||||
- step: build@nodejs
|
||||
name: fetchurl
|
||||
displayName: fetchurl
|
||||
name: update_files
|
||||
displayName: 更新文件
|
||||
nodeVersion: 21.5.0
|
||||
commands:
|
||||
- git clone https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git
|
||||
- '# git clone https://develop202:${GITHUB_TOKEN}@github.com/develop202/migu_video.git'
|
||||
- cd migu_video
|
||||
- '# 设置NPM源,提升安装速度'
|
||||
- npm config set registry https://registry.npmmirror.com
|
||||
- '# 执行编译命令 '
|
||||
- '# npm install && node fetchURLByWasm.js'
|
||||
- '# npm install && node fetchURLByAndroid.js'
|
||||
- '# npm install && node fetchURLByAndroidV2.js'
|
||||
- npm install && node fetchURLByAndroid720p.js
|
||||
- '# npm install && node fetchURLByWasmV2.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 push -f https://dream-deve:${TOKEN}@gitee.com/dream-deve/migu_video.git main:main'
|
||||
- git push
|
||||
caches: []
|
||||
notify: []
|
||||
strategy:
|
||||
retry: '0'
|
||||
timeout: 2
|
||||
timeout: 4
|
||||
Reference in New Issue
Block a user