From 9c753ad6885179eb1e763a46b5dfaea3df43552b Mon Sep 17 00:00:00 2001 From: yuanzhen869 Date: Wed, 18 Dec 2024 09:06:52 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/sync=5Fra?= =?UTF-8?q?w=5Ffile.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/sync_raw_file.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/sync_raw_file.yml b/.gitea/workflows/sync_raw_file.yml index 46530a3..0e81ec2 100644 --- a/.gitea/workflows/sync_raw_file.yml +++ b/.gitea/workflows/sync_raw_file.yml @@ -10,27 +10,27 @@ jobs: sync_files: runs-on: ubuntu-latest steps: - - name: Clone repository + - name: Clone Gitea repository uses: actions/checkout@v2 - - name: Download raw file from GitHub + - name: Download raw files from GitHub run: | mkdir -p ./surge/ - curl -o ./surge/Lan.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Lan/Lan.list - curl -o ./surge/Apple_All.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Apple/Apple_All.list - curl -o ./surge/Steam.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Steam/Steam.list - curl -o ./surge/SteamCN.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/SteamCN/SteamCN.list - curl -o ./surge/Xbox.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Xbox/Xbox.list - curl -o ./surge/OpenAI.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/OpenAI/OpenAI.list - curl -o ./surge/Gemini.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Gemini/Gemini.list - curl -o ./surge/Claude.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Claude/Claude.list - curl -o ./surge/China_All.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/China/China_All.list - curl -o ./surge/Proxy_All.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/rule/Surge/Proxy/Proxy_All.list + curl -o ./surge/Lan.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Lan/Lan.list + curl -o ./surge/Apple_All.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple_All.list + curl -o ./surge/Steam.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Steam/Steam.list + curl -o ./surge/SteamCN.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/SteamCN/SteamCN.list + curl -o ./surge/Xbox.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Xbox/Xbox.list + curl -o ./surge/OpenAI.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OpenAI/OpenAI.list + curl -o ./surge/Gemini.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Gemini/Gemini.list + curl -o ./surge/Claude.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Claude/Claude.list + curl -o ./surge/China_All.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China_All.list + curl -o ./surge/Proxy_All.list https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Proxy/Proxy_All.list - - name: Commit and push changes + - name: Commit and push changes to Gitea run: | git config --global user.name "yuanzhen869" git config --global user.email "yuanzhen869@gmail.com" - git add . - git commit -m "Sync file from GitHub raw" || echo "No changes to commit" + git add surge/ + git commit -m "Sync files from GitHub raw" || echo "No changes to commit" git push origin main \ No newline at end of file