ci: update diagram workflow #4
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: Create diagram | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
jobs: | |
get_data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Update diagram | |
uses: githubocto/repo-visualizer@main | |
with: | |
excluded_paths: "ignore,.github" | |
- name: Commit and push diagram | |
run: | | |
git config --local user.name "GitHub Actions" | |
git config --local user.email "[email protected]" | |
git add ./diagram.svg | |
git commit -m "docs: repo visualizer: updated diagram" | |
git push https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/yasminlopes/clean-ts-api.git HEAD:master |