Skip to content

Commit f6da817

Browse files
committed
fix: fix deploy error
1 parent 6b88e62 commit f6da817

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build-playground.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ on:
55
types: [opened, reopened, synchronize, edited]
66
paths:
77
- '.vitepress/**'
8-
workflow_dispatch:
8+
- 'genui-sdk/**'
9+
push:
10+
branches: [ dev, main, lhs/genui-playground-init]
11+
paths:
12+
- '.vitepress/**'
13+
- 'genui-sdk/**'
14+
workflow_dispatch: {}
915

1016
permissions:
1117
contents: read
@@ -26,6 +32,7 @@ jobs:
2632
- name: Checkout repository (with submodules)
2733
uses: actions/checkout@v4
2834
with:
35+
ref: ${{ github.event_name == 'workflow_dispatch' && 'lhs/genui-playground-init' || github.ref }}
2936
fetch-depth: 0
3037
submodules: false
3138
- name: Configure Git identity

.github/workflows/deploy-github.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [ dev, main ]
66
paths:
77
- '.vitepress/**'
8-
workflow_dispatch:
8+
workflow_dispatch: {}
99

1010
permissions:
1111
contents: read
@@ -26,6 +26,7 @@ jobs:
2626
- name: Checkout repository (with submodules)
2727
uses: actions/checkout@v4
2828
with:
29+
ref: ${{ github.event_name == 'workflow_dispatch' && 'lhs/genui-playground-init' || github.ref }}
2930
fetch-depth: 0
3031
submodules: false
3132
- name: Configure Git identity

0 commit comments

Comments
 (0)