From 7f24d361ec2d074baf87ff6fd539f7a1730556eb Mon Sep 17 00:00:00 2001 From: snakem982 Date: Mon, 2 Sep 2024 09:33:32 +0800 Subject: [PATCH] update workflow --- .github/workflows/updateclash.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/updateclash.yaml b/.github/workflows/updateclash.yaml index 380f9d4..1d15e14 100644 --- a/.github/workflows/updateclash.yaml +++ b/.github/workflows/updateclash.yaml @@ -2,6 +2,11 @@ name: update clash-meta.yaml on: push: + paths-ignore: + - "README.md" + - "script/**" + - "source/**" + - ".gitignore" branches: - main schedule: @@ -20,7 +25,8 @@ jobs: - name: Update Clash run: | wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }} - sed -i "s/${{ secrets.CLASH_REPLACE }}/_proxypool_/g" source/clash-meta.yaml + rand=$(date +%s%N | md5sum |cut -c 1-5) + sed -i "s/${{ secrets.CLASH_REPLACE }}/$rand/g" source/clash-meta.yaml - name: Commit files run: |