A composite GitHub action that encapsulates the CodeSee workflow.
-
Define a new action in your repository by adding a file in the
.github/workflows/
directory. For example:touch .github/workflows/codesee.yml
-
Copy the following template into your new workflow file:
on: push: branches: - main pull_request_target: types: [opened, synchronize, reopened] name: CodeSee permissions: read-all jobs: codesee: runs-on: ubuntu-latest continue-on-error: true name: Analyse the repo with CodeSee steps: - uses: Codesee-io/codesee-action@v2 with: codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
-
Commit the new workflow to GitHub.
-
That's it! CodeSee will analyze your code to keep your visualizations up to date.