From beabf1ae4200e19473d2a9acf1eeb765608f724e Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Thu, 21 Jan 2021 17:13:05 +0800 Subject: [PATCH] update --- .github/workflows/update_ios_task.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/update_ios_task.yml diff --git a/.github/workflows/update_ios_task.yml b/.github/workflows/update_ios_task.yml new file mode 100644 index 00000000..ba9223a3 --- /dev/null +++ b/.github/workflows/update_ios_task.yml @@ -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 \ No newline at end of file