Skip to content

Commit 4ac554b

Browse files
committed
Sketch
1 parent 832e38d commit 4ac554b

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,15 @@ jobs:
2323
run: npm install
2424
- name: Run the linter
2525
run: ./lint
26+
- name: Create the diagram
27+
run: ./diagram > diagram.md
28+
- name: Save the diagram
29+
run: |
30+
git status
31+
git remote
32+
ref=$( git symbolic-ref HEAD )
33+
git branch -D ${ref}-diagram || :
34+
git checkout -b ${ref}-diagram
35+
git add diagram.md
36+
git commit -m "Diagram saved by lint.yml workflow"
37+
git push

diagram

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
cat <<MERMAID
6+
\`\`\`mermaid
7+
graph TD;
8+
A-->B;
9+
A-->C;
10+
B-->D;
11+
C-->D;
12+
D-->E;
13+
E["generated at $( date )"]
14+
\`\`\`
15+
MERMAID

0 commit comments

Comments
 (0)