We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ac554b commit 53b74f8Copy full SHA for 53b74f8
1 file changed
.github/workflows/lint.yml
@@ -27,11 +27,11 @@ jobs:
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
+ git status
+ git remote -v
+ new_branch="${{ github.ref_name }}-diagram"
+ git branch -D "${new_branch}" || :
+ git checkout -b "${new_branch}"
36
git commit -m "Diagram saved by lint.yml workflow"
37
git push
0 commit comments