Run reusable workflow from ghbot runtime

This commit is contained in:
lezi-fun committed 2026-05-17 15:25:50 +08:00
1 parent 12284e57c8
commit 5d42ba1919
1 file changed
+18
+18
View File
@@ -96,17 +96,26 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
repository: lezi-fun/ghbot
ref: main
path: ghbot-runtime
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 24
cache: npm cache: npm
cache-dependency-path: ghbot-runtime/package-lock.json
- name: Install Codex CLI - name: Install Codex CLI
run: npm install -g @openai/codex run: npm install -g @openai/codex
- run: npm ci - run: npm ci
working-directory: ghbot-runtime
- run: npm run build - run: npm run build
working-directory: ghbot-runtime
- name: Remove stale review result - name: Remove stale review result
run: rm -f .review-result.json run: rm -f .review-result.json
working-directory: ghbot-runtime
- run: node dist/src/actions/runReview.js - run: node dist/src/actions/runReview.js
working-directory: ghbot-runtime
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
CODEX_API_KEY: ${{ secrets.CODEX_API_KEY }} CODEX_API_KEY: ${{ secrets.CODEX_API_KEY }}
@@ -135,17 +144,26 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
repository: lezi-fun/ghbot
ref: main
path: ghbot-runtime
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 24 node-version: 24
cache: npm cache: npm
cache-dependency-path: ghbot-runtime/package-lock.json
- name: Install Codex CLI - name: Install Codex CLI
run: npm install -g @openai/codex run: npm install -g @openai/codex
- run: npm ci - run: npm ci
working-directory: ghbot-runtime
- run: npm run build - run: npm run build
working-directory: ghbot-runtime
- name: Remove stale review result - name: Remove stale review result
run: rm -f .review-result.json run: rm -f .review-result.json
working-directory: ghbot-runtime
- run: node dist/src/actions/runReview.js - run: node dist/src/actions/runReview.js
working-directory: ghbot-runtime
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
CODEX_API_KEY: ${{ secrets.CODEX_API_KEY }} CODEX_API_KEY: ${{ secrets.CODEX_API_KEY }}