File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : chnroute
2
2
3
+ env :
4
+ GITHUB_TOKEN : ${{ secrets.ACC_TOKEN }}
5
+
3
6
on :
4
7
workflow_dispatch :
5
8
schedule :
12
15
- uses : actions/checkout@v2
13
16
- run : |
14
17
make sync
15
- make update_repo
18
+ git config --global user.name "github-actions[bot]"
19
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
20
+ git remote set-url origin https://x-access-token:${{ GITHUB_TOKEN }}@github.com/${{ github.repository }}
21
+ git add .
22
+ git commit -m "Auto update $(date -u '+%Y-%m-%d %H:%M:%S')"
23
+ git push
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ generate_chnroutes:
9
9
src/chnroutes.py
10
10
11
11
update_repo :
12
+ git pull origin master
12
13
git add .
13
14
git diff-index --quiet HEAD || git commit -m " Auto updated $( TIME_NOW) "
14
15
git push origin master
You can’t perform that action at this time.
0 commit comments