-
Notifications
You must be signed in to change notification settings - Fork 147
34 lines (30 loc) · 870 Bytes
/
Copy pathrun.yml
File metadata and controls
34 lines (30 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# name属性用来指定这个工作流的名字
name: Download The SUBSCRIBE
on:
push:
branches:
- main
schedule:
- cron: '0 0 1 * *' #国际标准时间,北京时间+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 flik@92coco.cn
git config --global user.name Flik
git add .
git commit -m"由github actions推送,日期:`date`"
git pull --rebase
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
branch: main
force_with_lease: true
directory: .