mirror of
https://github.com/Toperlock/sing-box-geosite.git
synced 2025-06-08 09:42:14 +08:00
Create sync.yml
This commit is contained in:
parent
c15f7304fb
commit
56a6b9359f
33
.github/workflows/sync.yml
vendored
Normal file
33
.github/workflows/sync.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Config Update
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 12 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python3
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install pandas
|
||||||
|
- name: Run script
|
||||||
|
run: python ../main.py
|
||||||
|
working-directory: ./rule/
|
||||||
|
- name: Commit and push config.json
|
||||||
|
run: |
|
||||||
|
git config --global user.email "action@github.com"
|
||||||
|
git config --global user.name "GitHub Action"
|
||||||
|
git add ./*.json
|
||||||
|
git commit -m "Add JSON files"
|
||||||
|
git push
|
Loading…
x
Reference in New Issue
Block a user