mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-17 23:34:45 +08:00
update
This commit is contained in:
47
.github/workflows/fetch.yml
vendored
47
.github/workflows/fetch.yml
vendored
@@ -1,47 +0,0 @@
|
|||||||
name: fetch
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
# push:
|
|
||||||
schedule:
|
|
||||||
- cron: 0 4-22/3 * * *
|
|
||||||
jobs:
|
|
||||||
run:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
# - name: 测试网络
|
|
||||||
# run: sudo bash proxy.sh
|
|
||||||
# run: |
|
|
||||||
# wget https://m.miguvideo.com/m/liveDetail/651632657?channelId=10010001005
|
|
||||||
# cat 651632657\?channelId=10010001005
|
|
||||||
# whoami
|
|
||||||
# wget "https://h5live.gslb.cmvideo.cn/wd_r2/cctv/cctv1hd/600/index.m3u8?msisdn=c1c19c14-58ef-41ed-9387-5139dfd8ebe6&mdspid=&spid=699004&netType=0&sid=2201057821&pid=2028597139×tamp=20250503100520&Channel_ID=0131_200300220100002&ProgramID=608807420&ParentNodeID=-99&assertID=2201057821&client_ip=2408:8214:8222:b4c0:f485:519f:640a:d7cc&SecurityKey=20250503100520&promotionId=&mvid=2201057821&mcid=500020&playurlVersion=WX-A1-8.4.2-RELEASE&userid=&jmhm=&videocodec=h264&bean=mgsph5&tid=h5&conFee=0&puData=4175754f84f2e5e83472f1eaa6fcdfae&ddCalcu=e4a1zf7yd5yc7wf564afa8e41ff22e754e38&sv=10000&crossdomain=www&ct=h5"
|
|
||||||
# cat index.m3u8*
|
|
||||||
# - name: clone clash
|
|
||||||
# run: git clone https://github.com/Elegycloud/clash-for-linux-backup.git
|
|
||||||
# - name: update clash config
|
|
||||||
# run: |
|
|
||||||
# echo "export CLASH_URL='${{secrets.URL}}'" > clash-for-linux/.env
|
|
||||||
# echo "export CLASH_SECRET=''" >> clash-for-linux-backup/.env
|
|
||||||
# - name: open proxy
|
|
||||||
# run: |
|
|
||||||
# bash clash-for-linux-backup/start.sh
|
|
||||||
# source clash.sh
|
|
||||||
# proxy_on
|
|
||||||
- run: npm ci
|
|
||||||
- run: node fetchURLByWasm.js
|
|
||||||
- name: Push to repository
|
|
||||||
run: |
|
|
||||||
# actions自动提交
|
|
||||||
git config user.name "GitHub Actions"
|
|
||||||
git config user.email "actions@github.com"
|
|
||||||
# echo "开始执行" >> interface.txt.bak
|
|
||||||
git add .
|
|
||||||
git diff --quiet && git diff --staged --quiet || git commit -m "Update by GitHub Actions"
|
|
||||||
git push
|
|
||||||
# - name: close proxy
|
|
||||||
# run: proxy_off
|
|
||||||
@@ -20,40 +20,15 @@ stages:
|
|||||||
commands:
|
commands:
|
||||||
- '# 设置NPM源,提升安装速度'
|
- '# 设置NPM源,提升安装速度'
|
||||||
- npm config set registry https://registry.npmmirror.com
|
- npm config set registry https://registry.npmmirror.com
|
||||||
- ''
|
|
||||||
- '# 执行编译命令'
|
- '# 执行编译命令'
|
||||||
- npm ci
|
- npm i
|
||||||
notify: []
|
|
||||||
strategy:
|
|
||||||
retry: '0'
|
|
||||||
timeout: 2
|
|
||||||
- name: fetchurl
|
|
||||||
displayName: fetchurl
|
|
||||||
strategy: naturally
|
|
||||||
trigger: auto
|
|
||||||
executor: []
|
|
||||||
steps:
|
|
||||||
- step: build@nodejs
|
|
||||||
name: fetch_url
|
|
||||||
displayName: fetch url
|
|
||||||
nodeVersion: 21.5.0
|
|
||||||
commands:
|
|
||||||
- node fetchURLByWasm.js
|
- node fetchURLByWasm.js
|
||||||
notify: []
|
|
||||||
strategy:
|
strategy:
|
||||||
retry: '0'
|
retry: '0'
|
||||||
timeout: 3
|
timeout: 4
|
||||||
- name: push
|
- step:
|
||||||
displayName: push
|
|
||||||
strategy: naturally
|
|
||||||
trigger: auto
|
|
||||||
executor:
|
|
||||||
- dream-deve
|
|
||||||
steps:
|
|
||||||
- step: build@nodejs
|
|
||||||
name: push_repo
|
name: push_repo
|
||||||
displayName: push repo
|
displayName: push_repo
|
||||||
nodeVersion: 21.5.0
|
|
||||||
commands:
|
commands:
|
||||||
- '# actions提交'
|
- '# actions提交'
|
||||||
- git config user.name "Gitee Actions"
|
- git config user.name "Gitee Actions"
|
||||||
@@ -62,7 +37,6 @@ stages:
|
|||||||
- git add .
|
- git add .
|
||||||
- git diff --quiet && git diff --staged --quiet || git commit -m "Update by Gitee Actions"
|
- git diff --quiet && git diff --staged --quiet || git commit -m "Update by Gitee Actions"
|
||||||
- git push
|
- git push
|
||||||
notify: []
|
|
||||||
strategy:
|
strategy:
|
||||||
retry: '0'
|
retry: '0'
|
||||||
timeout: 1
|
timeout: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user