This commit is contained in:
lxk0301
2021-01-21 17:13:05 +08:00
parent de29bf0cff
commit 1066f485d2

37
.github/workflows/update_ios_task.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: update_ios_task
on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
#push:
# branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: "更新iOS端3大订阅软件订阅配置"
run: |
bash update_task.sh
- name: commit
run: |
git config --global user.email ${{ secrets.EMAIL }}
git config --global user.name lxk0301
git add .
git commit -m "更新iOS端3大订阅软件订阅配置 by lxk0301 Github Action" -a || echo "Nothing to update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
branch: master