Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc_builder_revision as workflow input to ease debugging #399

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading