Render Source Visualizations #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Render Source Visualizations | |
on: | |
workflow_dispatch: | |
# no content, allows manual triggering | |
schedule: | |
# 5:35 pm every Sunday (UTC) | |
# to ensure the images are never too stale | |
- cron: "35 17 * * 0" | |
jobs: | |
render: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3.3.0 | |
with: | |
ref: main | |
- name: Create Branch | |
uses: peterjgrainger/action-create-branch@v2.4.0 # Pinned to v2.4.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
with: | |
branch: "bot/update-diagrams" | |
- name: Checkout code | |
uses: actions/checkout@v3.3.0 | |
with: | |
ref: bot/update-diagrams | |
- name: Update ASO v1 diagram | |
uses: githubocto/repo-visualizer@main | |
with: | |
excluded_paths: "ignore,.github,v2,docs,hack,scripts/v2" | |
output_file: "docs/hugo/content/contributing/aso-v1-structure.svg" | |
commit_message: "Updating visualization for ASO v1" | |
should_push: false | |
- name: Update ASO v2 diagram | |
uses: githubocto/repo-visualizer@main | |
with: | |
# Paths are relative to root_path | |
excluded_paths: "ignore,.github,tools,cmd" | |
output_file: "docs/hugo/content/contributing/aso-v2-structure.svg" | |
root_path: "v2" | |
commit_message: "Updating visualization for ASO v2" | |
should_push: false | |
- name: Update asoctl diagram | |
uses: githubocto/repo-visualizer@main | |
with: | |
excluded_paths: "ignore,.github" | |
output_file: "docs/hugo/content/contributing/asoctl-structure.svg" | |
root_path: "v2/cmd/asoctl" | |
commit_message: "Updating visualization for asoctl" | |
should_push: false | |
- name: Update ASO Code Generator diagram | |
uses: githubocto/repo-visualizer@main | |
with: | |
excluded_paths: "ignore,.github" | |
output_file: "docs/hugo/content/contributing/aso-codegen-structure.svg" | |
root_path: "v2/tools/generator" | |
commit_message: "Updating visualization for the code generator" | |
should_push: false | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5.0.0 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
commit-message: Update Code Structure Diagrams | |
branch: bot/update-diagrams | |
base: main | |
delete-branch: true | |
title: "[Automated] Update Code Structure Diagrams" | |
body: | | |
Update visualisation diagrams showing the structure of ASO code | |
Auto-generated by [create-pull-request][1] | |
[1]: https://github.com/peter-evans/create-pull-request | |
labels: | | |
automated pr |