-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from yunkon-kim/yunkon-kim-patch-240126
Visualize codebase
- Loading branch information
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Update diagram | ||
on: | ||
workflow_dispatch: {} | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
update_diagram: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Update diagram | ||
# id: make_diagram | ||
uses: githubocto/[email protected] | ||
with: | ||
output_file: "docs/diagrams/visualizing-the-codebase.svg" | ||
excluded_paths: "ignore,.github" | ||
should_push: false # Not to create a new commit | ||
# artifact_name: "diagrams" # Save the diagram to the artifact | ||
|
||
# - name: Get artifact | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: "diagrams" | ||
# path: "downloads" | ||
|
||
- name: Add the updated diagram | ||
run: | | ||
cd docs/diagrams/ | ||
git add -v visualizing-the-codebase.svg | ||
- name: Create Pull Request | ||
id: create-pull-request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.CR_PAT }} | ||
commit-message: Update diagram to visualize the codebase | ||
committer: cb-bot <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: update-diagram | ||
base: main | ||
delete-branch: true | ||
title: '[Workflow] Update diagram to visualize the codebase [skip ci]' | ||
body: | | ||
Update diagram to visualize the codebase | ||
- Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
labels: | | ||
documentation | ||
automated pr | ||
assignees: cloud-barista/cm-beetle-maintainer | ||
reviewers: cloud-barista/cm-beetle-maintainer | ||
team-reviewers: | | ||
owners | ||
maintainers | ||
draft: false | ||
|
||
- name: Check outputs | ||
run: | | ||
echo "Pull Request Number - ${{ steps.create-pull-request.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.create-pull-request.outputs.pull-request-url }}" |
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