You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): rebuild weekly-update.yml with proper YAML and features
Add notify job, job summary, set +e/PIPESTATUS exit code capture,
persist-credentials: false with git remote set-url for push auth,
PR body via variable construction.
echo "⚠️ ANTHROPIC_API_KEY not set - skipping automated update"
125
-
echo "Please add ANTHROPIC_API_KEY to repository secrets to enable automation"
107
+
echo "ANTHROPIC_API_KEY not set - skipping automated update"
126
108
echo "success=false" >> $GITHUB_OUTPUT
127
109
exit 0
128
110
fi
129
111
112
+
set +e
130
113
claude --print --dangerously-skip-permissions \
131
114
--model sonnet \
132
-
"/updating - Run the updating skill to update all dependencies. Create atomic commits for each update. You are running in CI mode - skip builds and tests (CI will run them separately). Do not push or create a PR - just make the changes and commits locally." \
115
+
"/updating - Run the updating skill to update all dependencies. Create atomic commits for each update. You are running in CI mode - skip builds and tests. Do not push or create a PR." \
133
116
2>&1 | tee claude-output.log
117
+
CLAUDE_EXIT=${PIPESTATUS[0]}
118
+
set -e
134
119
135
-
if [ $? -eq 0 ]; then
120
+
if [ "$CLAUDE_EXIT" -eq 0 ]; then
136
121
echo "success=true" >> $GITHUB_OUTPUT
137
-
echo "✓ Claude Code successfully applied updates"
138
122
else
139
123
echo "success=false" >> $GITHUB_OUTPUT
140
-
echo "⚠️ Claude Code encountered errors"
141
124
fi
142
125
143
126
- name: Check for changes
144
127
id: changes
145
128
run: |
146
129
if [ -n "$(git status --porcelain)" ] || [ "$(git rev-list --count HEAD ^origin/main)" -gt 0 ]; then
0 commit comments