Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/二维码登录.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
timeout-minutes: 15
steps:
- name: 检出仓库
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: 创建 Node 环境
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
Expand All @@ -51,18 +51,8 @@ jobs:
fi
gh --version

- name: 缓存依赖
id: cache-npm
uses: actions/cache@v4
with:
path: ./api/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: 安装依赖
run: npm run install
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}

# ════════════════════════════════════════════
# 步骤一:生成二维码 → PNG + Summary + HTML 登录页
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/仓库保活.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: 检出仓库
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/手机号登录.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ jobs:
timeout-minutes: 2
steps:
- name: 检出仓库
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: 创建 Node 环境
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
cache-dependency-path: ./api/package-lock.json

- name: 检查 GitHub CLI
if: github.event.inputs.step == '登录'
run: |
Expand All @@ -52,22 +54,16 @@ jobs:
sudo apt install gh -y
fi
gh --version
- name: 缓存依赖
id: cache-npm
uses: actions/cache@v4
with:
path: ./api/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: 安装依赖
run: npm run install
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}

- name: 发送验证码
if: github.event.inputs.step == '发送验证码'
run: npm run sent
env:
PHONE: ${{ secrets.PHONE }}

- name: 手机号登录
if: github.event.inputs.step == '登录'
run: npm run phoneLogin
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/签到.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,18 @@ jobs:
timeout-minutes: 30
steps:
- name: 检出仓库
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: 创建 Node 环境
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
cache-dependency-path: ./api/package-lock.json
- name: 缓存依赖
id: cache-npm
uses: actions/cache@v4
with:
path: ./api/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: 安装依赖
run: npm run install
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}

- name: 执行签到
run: npm run main
env:
Expand Down