Skip to content

Commit f3e82c5

Browse files
committed
add commit input for workflow
1 parent 1fcf2c6 commit f3e82c5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/mdbook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Deploy mdBook site to Pages
33
on:
44
# Allows you to run this workflow manually from the Actions tab
55
workflow_dispatch:
6+
inputs:
7+
commit:
8+
type: string
9+
description: Commit of `Cuprate/cuprate` to use
10+
required: true
611

712
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
813
permissions:
@@ -27,6 +32,7 @@ jobs:
2732
- uses: actions/checkout@v4
2833
with:
2934
repository: Cuprate/cuprate
35+
ref: ${{ inputs.commit }}
3036
- name: Install mdBook
3137
run: |
3238
cargo install --version ${MDBOOK_VERSION} mdbook

0 commit comments

Comments
 (0)