Skip to content

Commit 53b74f8

Browse files
committed
n
1 parent 4ac554b commit 53b74f8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
run: ./diagram > diagram.md
2828
- name: Save the diagram
2929
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
3530
git add diagram.md
31+
git status
32+
git remote -v
33+
new_branch="${{ github.ref_name }}-diagram"
34+
git branch -D "${new_branch}" || :
35+
git checkout -b "${new_branch}"
3636
git commit -m "Diagram saved by lint.yml workflow"
3737
git push

0 commit comments

Comments
 (0)