From 17759905a1ee3fe32bc2d02c6c1cf569d67f1024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=BA=E4=BB=94?= <14944603+HotKids@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:43:00 +0800 Subject: [PATCH] Update and rename sing-box/sync.yml to .github/workflows/sync.yml --- {sing-box => .github/workflows}/sync.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename {sing-box => .github/workflows}/sync.yml (87%) diff --git a/sing-box/sync.yml b/.github/workflows/sync.yml similarity index 87% rename from sing-box/sync.yml rename to .github/workflows/sync.yml index 427005bef..0b4dbecf5 100644 --- a/sing-box/sync.yml +++ b/.github/workflows/sync.yml @@ -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 "action@github.com" git config --global user.name "GitHub Action" - git add ./rule/*.json + git add ./sing-box/*.json git commit -m "Add JSON files" git push