Skip to content

Commit

Permalink
Add 'doc_builder_revision' arg to workflow input (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Sep 21, 2023
1 parent daaaf9a commit 0fa2373
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ on:
type: string
default: "src/"
description: "Suffix to add after the version tag (e.g. 1.3.0 or main) in the documentation links."
# Debug purposes only!
doc_builder_revision:
type: string
default: "main"
description: "Debug purposes only. Revision of `doc-builder` repo to use. Useful to test changes on `doc-builder`."


jobs:
build_pr_documentation:
Expand All @@ -52,6 +58,7 @@ jobs:
with:
repository: 'huggingface/doc-builder'
path: doc-builder
ref: ${{ inputs.doc_builder_revision }}

- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -102,7 +109,7 @@ jobs:
run: |
pip uninstall -y doc-builder
cd doc-builder
git pull origin main
git pull origin ${{ inputs.doc_builder_revision }}
pip install .
cd ..
Expand Down

0 comments on commit 0fa2373

Please sign in to comment.