-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
43 lines (37 loc) · 2.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# action.yml
name: 'Codeatlas - Codebase Visualization'
description: "Visualize your codebase during CI."
inputs:
sub_directory:
description: 'Sub-directory to start visualisation from.'
required: false
default: ''
runs:
using: "composite"
steps:
- name: pull
shell: bash
run: docker pull ghcr.io/codeatlashq/codebase-tessellator:0.1.2
- name: 'Codeatlas - Codebase Visualisation'
shell: bash
run: docker run --mount type=bind,source="$GITHUB_WORKSPACE",target=$GITHUB_WORKSPACE ghcr.io/codeatlashq/codebase-tessellator:0.1.2 tessellate-from-path --repo_path $GITHUB_WORKSPACE/${{ inputs.sub_directory }} --output_path $GITHUB_WORKSPACE/.codeatlas --repo_owner $GITHUB_REPOSITORY_OWNER
- uses: peter-evans/create-pull-request@v4
with:
add-paths: ".codeatlas/"
commit-message: "codeatlas: update repo visualization to ${{ github.sha }}."
committer: "codeatlas-bot <[email protected]>"
author: "codeatlas-bot <[email protected]>"
branch: "codeatlas-preview"
delete-branch: true
title: "Codeatlas: Update repo visualisation."
body: |
Adds data for codebase visualization at codeatlas.dev.
Preview diagram here: https://codeatlas.dev/github/${{ github.repository }}/codeatlas-preview
After merging, this diagram will become permanently available at https://codeatlas.dev/github/${{ github.repository }}/${{ github.event.repository.default_branch }}
You can use the following badge to embed this link in your README:
`
(Auto-generated by [codebase-visualizer-action](https://github.com/codeatlasHQ/codebase-visualizer-action))
branding:
color: gray-dark
icon: map