Skip to content

Commit 4d1ce24

Browse files
feat(ci): add ability to use pre-existing ref
Signed-off-by: Victor Adossi <[email protected]>
1 parent 6e5ddec commit 4d1ce24

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches: ["main"]
66

77
workflow_dispatch:
8+
inputs:
9+
ref:
10+
required: false
11+
type: string
12+
default: main
13+
description: |
14+
The git ref to deploy (ex. 'main', 'branch', '<commit sha>')
815
916
permissions:
1017
contents: read
@@ -27,6 +34,8 @@ jobs:
2734
runs-on: ubuntu-latest
2835
steps:
2936
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
with:
38+
ref: ${{ inputs.ref || 'main' }}
3039

3140
- uses: ./.github/actions/mdbook
3241
with:

0 commit comments

Comments
 (0)