From 843175d88602808a1ebfc39aec53a8cafa0bef95 Mon Sep 17 00:00:00 2001 From: enpitsulin Date: Sat, 10 Aug 2024 22:00:30 +0800 Subject: [PATCH] ci: use shell --- .github/workflows/schedule.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index f2b6d27..3bc9ec0 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -38,8 +38,22 @@ jobs: - name: Install dependencies run: pnpm install - - name: Setup WARP - uses: boywithkeyboard/warp@v1 + - name: Install WARP + run: | + echo "WARP mode: client warp+doh." + sudo apt-get -y update + curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list + sudo apt-get update + sudo apt-get install -y cloudflare-warp + sudo warp-cli --accept-tos registration new + sudo warp-cli --accept-tos mode proxy + sudo warp-cli --accept-tos connect + + sleep 1 + echo "Trace: $(sudo curl https://www.cloudflare.com/cdn-cgi/trace/)" + + shell: bash - name: Run daily attendance run: pnpm attendance @@ -48,4 +62,4 @@ jobs: SERVERCHAN_SENDKEY: ${{ secrets.SERVERCHAN_SENDKEY }} BARK_URL: ${{ secrets.BARK_URL }} SELECT_CHANNEL: ${{ secrets.SELECT_CHANNEL }} - HTTP_PROXY: 'https://127.0.0.1:40000' + HTTP_PROXY: 'socks5://127.0.0.1:40000'