Skip to content

Commit

Permalink
ci: use shell
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin committed Aug 10, 2024
1 parent 5f649a6 commit 843175d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

0 comments on commit 843175d

Please sign in to comment.