add 潇洒tvbox 接口

This commit is contained in:
qist
2025-02-21 12:35:35 +08:00
parent 529fca2799
commit 0945b4d666
2 changed files with 42 additions and 0 deletions

41
.github/workflows/run.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Update xiaosa
on:
workflow_dispatch:
schedule:
- cron: "30 2 * * *"
push:
branches:
- main
paths-ignore:
- "**/README.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v4
- name: wget the xiaosa
run: |
pwd
cd xiaosa/
wget https://jihulab.com/fourd/FourD/-/raw/main/local/%E5%8D%95%E7%BA%BF%E8%B7%AF.zip -O xiaosa.zip
unzip xiaosa.zip
\cp -pdr TVBoxOSC/tvbox/* ./
rm -rf xiaosa.zip TVBoxOSC
shell: bash
# - name: Move files to publish directory
# run: |
# mkdir -p publish
# \cp *.txt ./publish/
- name: Git push assets to "release" branch
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "87984115+github-actions[bot]@users.noreply.github.com"
git add .
if ! git diff-index --quiet HEAD --; then
git commit -m "潇洒更新 $(date +%Y%m%d%H%M)"
git push -f origin main
else
echo "没有文件更新,不执行 git push"
fi

1
xiaosa/README.md Normal file
View File

@@ -0,0 +1 @@
### 自动更新潇洒tvbox 接口