Skip to content

Commit 609ea65

Browse files
committed
update
1 parent a4a3504 commit 609ea65

File tree

2 files changed

+29
-18
lines changed

2 files changed

+29
-18
lines changed

.github/workflows/update-skills.yml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ jobs:
121121
- name: Generate PR body
122122
if: steps.check-commits.outputs.has_commits == 'true' && steps.analyze.outputs.has_changes == 'true' && steps.check-pr.outputs.existing_pr == ''
123123
id: pr-body
124+
env:
125+
COMMIT_COUNT: ${{ steps.check-commits.outputs.commit_count }}
126+
CONTRACTS_COUNT: ${{ steps.analyze.outputs.contracts_count }}
127+
CORE_COUNT: ${{ steps.analyze.outputs.core_count }}
128+
EVM_COUNT: ${{ steps.analyze.outputs.evm_count }}
129+
EVOLVE_COUNT: ${{ steps.analyze.outputs.evolve_count }}
130+
TESTS_COUNT: ${{ steps.analyze.outputs.tests_count }}
124131
run: |
125132
DATE=$(date +%Y-%m-%d)
126133
@@ -133,43 +140,43 @@ jobs:
133140
### Summary
134141
HEREDOC_END
135142
136-
echo "- **Total commits this week:** ${{ steps.check-commits.outputs.commit_count }}" >> /tmp/pr_body.md
143+
echo "- **Total commits this week:** ${COMMIT_COUNT:-0}" >> /tmp/pr_body.md
137144
echo "" >> /tmp/pr_body.md
138145
139146
echo "### Skills Review Checklist" >> /tmp/pr_body.md
140147
echo "" >> /tmp/pr_body.md
141148
142-
if [ "${{ steps.analyze.outputs.contracts_count }}" -gt 0 ]; then
149+
if [ "${CONTRACTS_COUNT:-0}" -gt 0 ]; then
143150
echo "#### contracts.md" >> /tmp/pr_body.md
144-
echo "- **Files changed:** ${{ steps.analyze.outputs.contracts_count }}" >> /tmp/pr_body.md
151+
echo "- **Files changed:** $CONTRACTS_COUNT" >> /tmp/pr_body.md
145152
echo "- [ ] Review and update contracts skill" >> /tmp/pr_body.md
146153
echo "" >> /tmp/pr_body.md
147154
fi
148155
149-
if [ "${{ steps.analyze.outputs.core_count }}" -gt 0 ]; then
156+
if [ "${CORE_COUNT:-0}" -gt 0 ]; then
150157
echo "#### ev-reth-core.md" >> /tmp/pr_body.md
151-
echo "- **Files changed:** ${{ steps.analyze.outputs.core_count }}" >> /tmp/pr_body.md
158+
echo "- **Files changed:** $CORE_COUNT" >> /tmp/pr_body.md
152159
echo "- [ ] Review and update core skill" >> /tmp/pr_body.md
153160
echo "" >> /tmp/pr_body.md
154161
fi
155162
156-
if [ "${{ steps.analyze.outputs.evm_count }}" -gt 0 ]; then
163+
if [ "${EVM_COUNT:-0}" -gt 0 ]; then
157164
echo "#### ev-reth-evm.md" >> /tmp/pr_body.md
158-
echo "- **Files changed:** ${{ steps.analyze.outputs.evm_count }}" >> /tmp/pr_body.md
165+
echo "- **Files changed:** $EVM_COUNT" >> /tmp/pr_body.md
159166
echo "- [ ] Review and update EVM skill" >> /tmp/pr_body.md
160167
echo "" >> /tmp/pr_body.md
161168
fi
162169
163-
if [ "${{ steps.analyze.outputs.evolve_count }}" -gt 0 ]; then
170+
if [ "${EVOLVE_COUNT:-0}" -gt 0 ]; then
164171
echo "#### ev-reth-evolve.md" >> /tmp/pr_body.md
165-
echo "- **Files changed:** ${{ steps.analyze.outputs.evolve_count }}" >> /tmp/pr_body.md
172+
echo "- **Files changed:** $EVOLVE_COUNT" >> /tmp/pr_body.md
166173
echo "- [ ] Review and update Evolve skill" >> /tmp/pr_body.md
167174
echo "" >> /tmp/pr_body.md
168175
fi
169176
170-
if [ "${{ steps.analyze.outputs.tests_count }}" -gt 0 ]; then
177+
if [ "${TESTS_COUNT:-0}" -gt 0 ]; then
171178
echo "#### ev-reth-testing.md" >> /tmp/pr_body.md
172-
echo "- **Files changed:** ${{ steps.analyze.outputs.tests_count }}" >> /tmp/pr_body.md
179+
echo "- **Files changed:** $TESTS_COUNT" >> /tmp/pr_body.md
173180
echo "- [ ] Review and update testing skill" >> /tmp/pr_body.md
174181
echo "" >> /tmp/pr_body.md
175182
fi
@@ -213,22 +220,27 @@ jobs:
213220
env:
214221
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215222
PR_NUMBER: ${{ steps.check-pr.outputs.existing_pr }}
223+
CONTRACTS_COUNT: ${{ steps.analyze.outputs.contracts_count }}
224+
CORE_COUNT: ${{ steps.analyze.outputs.core_count }}
225+
EVM_COUNT: ${{ steps.analyze.outputs.evm_count }}
226+
EVOLVE_COUNT: ${{ steps.analyze.outputs.evolve_count }}
227+
TESTS_COUNT: ${{ steps.analyze.outputs.tests_count }}
216228
run: |
217229
DATE=$(date +%Y-%m-%d)
218230
219-
# Build comment safely
231+
# Build comment safely using environment variables
220232
cat > /tmp/comment.md << HEREDOC_END
221233
## Additional changes detected (${DATE})
222234
223235
New commits detected. Please review the updated file counts:
224236
225237
| Skill | Files Changed |
226238
|-------|---------------|
227-
| contracts | ${{ steps.analyze.outputs.contracts_count }} |
228-
| ev-reth-core | ${{ steps.analyze.outputs.core_count }} |
229-
| ev-reth-evm | ${{ steps.analyze.outputs.evm_count }} |
230-
| ev-reth-evolve | ${{ steps.analyze.outputs.evolve_count }} |
231-
| ev-reth-testing | ${{ steps.analyze.outputs.tests_count }} |
239+
| contracts | ${CONTRACTS_COUNT:-0} |
240+
| ev-reth-core | ${CORE_COUNT:-0} |
241+
| ev-reth-evm | ${EVM_COUNT:-0} |
242+
| ev-reth-evolve | ${EVOLVE_COUNT:-0} |
243+
| ev-reth-testing | ${TESTS_COUNT:-0} |
232244
HEREDOC_END
233245
234246
gh pr comment "$PR_NUMBER" --body-file /tmp/comment.md

contracts/lib/forge-std

Submodule forge-std deleted from 8e40513

0 commit comments

Comments
 (0)