Skip to content

Commit 82156fb

Browse files
committed
Fix Mermaid render: checkout branch ref to avoid detached HEAD on push
1 parent e229e05 commit 82156fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/render-mermaid.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18+
ref: ${{ github.head_ref || github.ref_name }}
1819

1920
- name: Setup Node
2021
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)