Skip to content

Commit fd44eea

Browse files
fix: report failure when pnpm update-outdated-deps fails in CI (#565)
1 parent b942722 commit fd44eea

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.github/prompts/update-dependencies.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,27 @@ Update all dependencies to their latest versions:
2020
pnpm update-outdated-deps
2121
```
2222

23-
Then, check if any `package.json` files were modified:
23+
**Check the exit code.** If the command failed (non-zero exit code), create an issue reporting the failure and stop:
24+
25+
```bash
26+
gh issue create \
27+
--title "[agent] pnpm update-outdated-deps failed" \
28+
--body "## Dependency update command failed
29+
30+
The \`pnpm update-outdated-deps\` command failed before any validation could begin.
31+
32+
## Error
33+
34+
<Paste the full stderr/stdout from the failed command>
35+
36+
## Workflow run
37+
38+
$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
39+
```
40+
41+
Then STOP. You are done.
42+
43+
If the command succeeded, check if any `package.json` files were modified:
2444

2545
```bash
2646
git diff --name-only -- '**/package.json' ':!node_modules'

0 commit comments

Comments
 (0)