From 9f75fae291689ccd64f4ba30f988098a8b3119e2 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Fri, 24 Mar 2023 20:18:39 +0800 Subject: [PATCH] Update sync_client.yml --- .github/workflows/sync_client.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/sync_client.yml b/.github/workflows/sync_client.yml index 83985c0..96cbcef 100644 --- a/.github/workflows/sync_client.yml +++ b/.github/workflows/sync_client.yml @@ -12,9 +12,6 @@ jobs: runs-on: ubuntu-20.04 - env: - USERNAME: ${{ secrets.GH_USERNAME }} - steps: - name: Checkout code uses: actions/checkout@v3.3.0 @@ -23,7 +20,7 @@ jobs: - name: Check the official latest version of Client run: | - NOW=$(wget -qO- "https://api.github.com/repos/${{ env.USERNAME }}/warp/releases" | grep "tag_name" | grep "CloudFlare" | head -n 1 | sed "s/.*_v\(.\{1,\}\)\".*/\1/g") + NOW=$(wget -qO- "https://api.github.com/repos/${{ github.actor }}/warp/releases" | grep "tag_name" | grep "CloudFlare" | head -n 1 | sed "s/.*_v\(.\{1,\}\)\".*/\1/g") LATEST=$(wget -qO- "https://pkg.cloudflareclient.com/packages/cloudflare-warp" | grep "release-row" | awk -F '' {'print $1'} | awk -F '' {'print $2'}) Operating_System=("CentOS 8" "Debian Bullseye" "Debian Buster" "Debian Stretch" "Ubuntu Jammy" "Ubuntu Focal" "Ubuntu Bionic" "Ubuntu Xenial")