From 0945b4d6669427b112555ba563bb292624f98cfe Mon Sep 17 00:00:00 2001 From: qist <87984115@qq.com> Date: Fri, 21 Feb 2025 12:35:35 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=BD=87=E6=B4=92tvbox=20=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/run.yml | 41 +++++++++++++++++++++++++++++++++++++++ xiaosa/README.md | 1 + 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/run.yml create mode 100644 xiaosa/README.md diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml new file mode 100644 index 00000000..e447227b --- /dev/null +++ b/.github/workflows/run.yml @@ -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 \ No newline at end of file diff --git a/xiaosa/README.md b/xiaosa/README.md new file mode 100644 index 00000000..37d2d865 --- /dev/null +++ b/xiaosa/README.md @@ -0,0 +1 @@ +### 自动更新潇洒tvbox 接口 \ No newline at end of file