Update Rules #1177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |