Skip to content

Commit

Permalink
feat: 使用 warp 作为代理服务来请求 (enpitsuLin#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin authored Aug 12, 2024
1 parent 97322c2 commit 6eba4cd
Show file tree
Hide file tree
Showing 8 changed files with 2,023 additions and 1,416 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- name: Get pnpm store directory
Expand All @@ -39,6 +38,16 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install WARP
uses: enpitsuLin/[email protected]
with:
mode: warp+doh

- name: Test WARP
run: |
echo "$(curl https://www.cloudflare.com/cdn-cgi/trace/)"
shell: bash

- name: Run daily attendance
run: pnpm attendance
env:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "skland-daily-attendance",
"type": "module",
"version": "1.0.0",
"packageManager": "[email protected]",
"description": "",
"author": "",
"license": "ISC",
"license": "MIT",
"keywords": [],
"main": "index.js",
"scripts": {
Expand All @@ -14,6 +15,8 @@
},
"dependencies": {
"dotenv": "^16.3.1",
"ofetch": "^1.3.4",
"proxy-agent": "^6.4.0",
"tsx": "^4.6.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 6eba4cd

Please sign in to comment.