-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename sing-box/sync.yml to .github/workflows/sync.yml
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Config Update | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [ master ] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
@@ -23,11 +23,11 @@ jobs: | |
pip install pandas requests pyyaml | ||
- name: Run script | ||
run: python ../main.py | ||
working-directory: ./rule/ | ||
working-directory: ./sing-box/ | ||
- name: Commit and push config.json | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git add ./rule/*.json | ||
git add ./sing-box/*.json | ||
git commit -m "Add JSON files" | ||
git push |