Skip to content

Commit b376d6d

Browse files
committed
fix: update error handling and improve pnpm setup in reflexion issue runner workflow
1 parent 71f3a92 commit b376d6d

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/reflexion-issue-runner.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE_NUM/comments \
4343
-d '{"body":"### 🚨 Reflexion Loop Error\nMissing required `GEMINI_API_KEY` or `ANTHROPIC_API_KEY` in repository secrets."}'
4444
fi
45-
false
45+
exit 1
4646
fi
4747
4848
- name: Checkout Code
@@ -53,8 +53,29 @@ jobs:
5353
with:
5454
node-version: '22'
5555

56+
- name: Install pnpm
57+
uses: pnpm/action-setup@v4
58+
with:
59+
version: 9
60+
61+
- name: Get pnpm store directory
62+
shell: bash
63+
run: |
64+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
65+
66+
- name: Setup pnpm cache
67+
uses: actions/cache@v4
68+
with:
69+
path: ${{ env.STORE_PATH }}
70+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
71+
restore-keys: |
72+
${{ runner.os }}-pnpm-store-
73+
5674
- name: Install Dependencies
57-
run: npm ci
75+
run: pnpm install --frozen-lockfile
76+
77+
- name: Setup Prisma
78+
run: pnpm prisma generate
5879

5980
- name: Run Reflexion Loop
6081
env:
@@ -63,8 +84,7 @@ jobs:
6384
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
6485
REFLEXION_MAX_COST_USD: ${{ vars.REFLEXION_MAX_COST_USD || '3' }}
6586
REFLEXION_MAX_REVISIONS: ${{ vars.REFLEXION_MAX_REVISIONS || '3' }}
66-
run: |
67-
node scripts/reflexion-issue-runner.js
87+
run: node scripts/reflexion-issue-runner.js
6888

6989
- name: Upload State Artifact
7090
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)