We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ac554b commit f2a7001Copy full SHA for f2a7001
1 file changed
.github/workflows/lint.yml
@@ -27,11 +27,13 @@ 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 config user.name "${{ github.workflow }}"
37
+ git config user.email "github-actions@example.com"
38
git commit -m "Diagram saved by lint.yml workflow"
- git push
39
+ git push --set-upstream "$( git remote )" "${new_branch}"
0 commit comments