Skip to content

feat(charts): publish Insights to GitHub Actions step summary#13

Merged
shigechika merged 1 commit into
mainfrom
feature/step-summary-mermaid
Apr 26, 2026
Merged

feat(charts): publish Insights to GitHub Actions step summary#13
shigechika merged 1 commit into
mainfrom
feature/step-summary-mermaid

Conversation

@shigechika

Copy link
Copy Markdown
Owner

Summary

Append the same charts.md content that's already being inserted into README.md to $GITHUB_STEP_SUMMARY when running under GitHub Actions. The Mermaid charts then render directly on each cron run's Actions page — opening README or the live dashboard becomes optional for a quick glance.

  • No data duplication: reuses the existing charts.md artifact in generate-charts.sh before it's rm -f'd
  • No workflow YAML change: the script discovers it's in Actions via $GITHUB_STEP_SUMMARY; local invocations are unaffected
  • No new dependencies: GitHub renders Mermaid in step summaries the same way it does in issues/READMEs

Closes #5.

Test plan

  • bash -n scripts/generate-charts.sh passes
  • shellcheck scripts/generate-charts.sh passes
  • Local run (no $GITHUB_STEP_SUMMARY set) behaves identically — the new if block is a no-op
  • After merge: trigger gh workflow run collect.yml and confirm the Insights block (Mermaid charts + repository table) renders on the run's summary page

References

🤖 Generated with Claude Code

When running under GitHub Actions, append the same charts.md content
that's already being inserted into README.md into $GITHUB_STEP_SUMMARY.
This makes each cron tick glanceable from the Actions tab — open the
run page and the latest Mermaid charts render right there, no need to
open README or the live dashboard.

Conditional on $GITHUB_STEP_SUMMARY being set so local invocations are
unaffected. No data duplication: the same charts.md is reused before
it's deleted.

Closes #5

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shigechika shigechika merged commit 7d0a0fd into main Apr 26, 2026
2 checks passed
@shigechika shigechika deleted the feature/step-summary-mermaid branch April 26, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Render run summary as Mermaid in $GITHUB_STEP_SUMMARY

1 participant