Skip to content

Automate ER diagram generation and chain docs deployment#143

Merged
monodera merged 3 commits into
mainfrom
feature/automate-er-diagram-generation
May 21, 2026
Merged

Automate ER diagram generation and chain docs deployment#143
monodera merged 3 commits into
mainfrom
feature/automate-er-diagram-generation

Conversation

@monodera
Copy link
Copy Markdown
Contributor

@monodera monodera commented May 21, 2026

Summary

  • test_database.yml: automatically generate tbls and SchemaCrawler ER diagrams after schema creation; commit results to docs/tbls/ and diagrams/ on push events
  • test_database.yml: add paths-ignore for diagrams/** and docs/tbls/** to prevent an infinite loop triggered by the diagram commit
  • deploy_docs_github_pages.yml: add workflow_run trigger so documentation is deployed automatically after the Test Database workflow completes
  • diagrams/: remove 21 legacy timestamped PDF files and replace with .gitkeep; CI will now manage erdiagram_targetdb_latest.pdf going forward

Workflow

push to main
  └─→ Test Database workflow starts
        ├─ run tests
        ├─ tbls diagram → docs/tbls/
        ├─ SchemaCrawler diagram → diagrams/erdiagram_targetdb_latest.pdf
        └─ git commit + push [skip ci]
  └─→ Test Database completes → Deploy Documentation triggered via workflow_run
        └─ MkDocs build → GitHub Pages deploy

Test plan

  • Confirm test_database.yml completes successfully after merge
  • Confirm docs/tbls/ Markdown files are updated in the diagram commit
  • Confirm diagrams/erdiagram_targetdb_latest.pdf is generated and committed
  • Confirm deploy_docs_github_pages.yml is triggered via workflow_run and GitHub Pages is updated

🤖 Generated with Claude Code

- test_database.yml: generate tbls diagram to docs/tbls/ and
  SchemaCrawler PDF to diagrams/erdiagram_targetdb_latest.pdf after
  schema creation; commit results back to main on push events
- test_database.yml: add paths-ignore for diagrams/ and docs/tbls/
  to prevent infinite loop on diagram commits
- deploy_docs_github_pages.yml: add workflow_run trigger so docs
  rebuild automatically after Test Database workflow completes
- Remove 21 legacy timestamped PDF files from diagrams/; add
  .gitkeep to preserve the directory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 21, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

monodera and others added 2 commits May 21, 2026 11:57
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…arty

Official actions (actions/*, github/*): updated to latest major tags
  - actions/checkout: v4/v5 → v6
  - actions/configure-pages: v5 → v6
  - actions/upload-pages-artifact: v4 → v5
  - actions/deploy-pages: v4 → v5
  - github/codeql-action: already on v3

Third-party actions: pinned to commit SHA for supply chain security
  - astral-sh/setup-uv: v4/v7 → SHA (v8.1.0)
  - k1low/setup-tbls: v1 → SHA (v1.4.0)
  - peter-evans/create-pull-request: v8 → SHA (v8.1.1)
  - codacy/codacy-analysis-cli-action: updated SHA from v1.1.0 → v4.4.7

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@monodera monodera merged commit 8bb2e09 into main May 21, 2026
2 checks passed
@monodera monodera deleted the feature/automate-er-diagram-generation branch May 21, 2026 22:24
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.

1 participant