From 73019248981fa172967f0328a894762073563148 Mon Sep 17 00:00:00 2001 From: Flik <2470982985@qq.com> Date: Wed, 18 Jan 2023 12:58:59 +0800 Subject: [PATCH] test --- .github/workflows/run.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/run.yml diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml new file mode 100644 index 000000000..5d0ee9ce7 --- /dev/null +++ b/.github/workflows/run.yml @@ -0,0 +1,34 @@ +# name属性用来指定这个工作流的名字 +name: Download The SUBSCRIBE + +on: + push: + branches: + - main + schedule: + - cron: '0 * */30 * *' #国际标准时间,北京时间+8,即下午1点钟 + + + +jobs: + run-csjs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main #采用main分支下的 + - name: Download the subscribe + run: | + sh ./run.sh + - name: Commit Changes + run: | + git config --global user.email 2470982985@qq.com + git config --global user.name a2470982985 + git add . + git commit -m"由github actions推送,日期:`date`" + git pull --rebase + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ GITHUB_TOKEN }} + branch: main + force_with_lease: true + directory: .