A github action that creates image files of a graph of cloudbuild.yaml jobs with https://github.com/RyanSiu1995/gcb-visualizer .
The created image files can be used in later steps of the github action, for example, commit to the repository via https://github.com/EndBug/add-and-commit , or store as build artifacts via https://github.com/actions/upload-artifact .
name: Visualize cloudbuild job graph and commit
on: push
jobs:
format:
runs-on: ubuntu-20.04
name: Visualize cloudbuild job graph and commit
steps:
- name: checkout
uses: actions/checkout@v2.4.0
- name: Create png image for each cloudbuild.yaml
uses: gecko655/github-action-visualize-gcb-graph@v0.0.3
with:
gcb-visualizer-version: v1.0.1
search-directories: 'sample'
filename-find-pattern: 'cloudbuild.*.yaml'
output-directory-relative-path: images
output-filetype: png
- name: commit and push
uses: EndBug/add-and-commit@v7.4.0
with:
message: "Visualize cloudbuild jobs by GitHub Action"
committer_name: "github-actions[bot]"
committer_email: "41898282+github-actions[bot]@users.noreply.github.com"
push: truehttps://github.com/gecko655/github-action-visualize-gcb-graph/runs/5087550688?check_suite_focus=true