From ce1e91988e1f90f16cd6f490df9ffb132508988f Mon Sep 17 00:00:00 2001 From: snakem982 Date: Fri, 4 Oct 2024 21:41:22 +0800 Subject: [PATCH] update workflow --- .github/workflows/updateclash.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/updateclash.yaml b/.github/workflows/updateclash.yaml index c6a18f7..fb8955c 100644 --- a/.github/workflows/updateclash.yaml +++ b/.github/workflows/updateclash.yaml @@ -38,10 +38,8 @@ jobs: - name: Update Clash 2 run: | - rand=$(curl ${{ secrets.CLASH_API_2 }} | grep -Eo "Clash: +.*" | sed 's/Clash: //') - curl $rand > source/clash-meta-2.yaml - rand=$(curl ${{ secrets.CLASH_API_2 }} | grep -Eo "V2Ray: +.*" | sed 's/V2Ray: //') - curl $rand > source/v2ray-2.txt + curl ${{ secrets.CLASH_API_2 }} > source/clash-meta-2.yaml + curl ${{ secrets.V2RAY_API_2 }} > source/v2ray-2.txt - name: Commit files run: |