Skip to content

Generate diagram into an assets branch #8

Generate diagram into an assets branch

Generate diagram into an assets branch #8

Workflow file for this run

---
name: Lint
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: npm install
run: npm install
- name: Run the linter
run: ./lint
- name: Create the diagram
run: ./diagram > diagram.md
- name: Save the diagram
run: |
git status
git remote
ref=$( git symbolic-ref HEAD )
git branch -D ${ref}-diagram || :
git checkout -b ${ref}-diagram
git add diagram.md
git commit -m "Diagram saved by lint.yml workflow"
git push