-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (29 loc) · 876 Bytes
/
push.yml
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
name: Update Rules
on:
schedule:
- cron: '0 20,8 * * *'
push:
workflow_dispatch:
jobs:
Pushed:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: actions/checkout@main
- name: Update Rules
run: |
bash ./script/mian.sh
- name: Git push assets to Github
run: |
git init
git config --local user.name "damengzhu"
git config --local user.email "1985980570@qq.com"
git branch -m main
git add .
git commit -m "Updated at $(date)"
#git remote add origin "https://${{ secrets.CODING_TokenUser }}:${{ secrets.CODING_Token }}@e.coding.net/damengzhu/banad/banad.git"
git fetch --unshallow origin
git push -u -f origin main