Skip to content

Commit 3adeb86

Browse files
committed
Update .github/workflows/publish.yml
1 parent d645522 commit 3adeb86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Publish documentation
22

33
on:
4+
repository_dispatch:
5+
types: ["publish"]
46
workflow_dispatch:
57
inputs:
68
ref:
@@ -27,7 +29,7 @@ jobs:
2729
- uses: actions/checkout@v3
2830
with:
2931
repository: hspec/hspec
30-
ref: ${{ inputs.ref }}
32+
ref: ${{ inputs.ref || 'main' }}
3133
- uses: actions/upload-pages-artifact@v1
3234
with:
3335
path: doc/_site/

0 commit comments

Comments
 (0)