Skip to content

Zyplayer

Zyplayer #3280

name: Zyplayer
on:
schedule:
- cron: 0 0/4 * * *
# push:
# branches:
# - main
workflow_dispatch:
jobs:
work:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download
run: |
curl https://jsd.cdn.zzko.cn/gh/ls125781003/dmtg@master/zy.json > ./ZYPlayer/zyplayer.json
# 更新时间
sed -i "/zyplayer.json/c\\// update time: $(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')" ./ZYPlayer/zyplayer.json
- name: Commit And Push
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "更新Zyplayer"
git push origin main