File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,27 @@ Update all dependencies to their latest versions:
2020pnpm 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
2646git diff --name-only -- ' **/package.json' ' :!node_modules'
You can’t perform that action at this time.
0 commit comments