Skip to content

Commit d95306f

Browse files
authored
Customize Khiops Python tutorial revision (#393)
Thusly, we can have the tutorials build for v10 as well.
1 parent f00a929 commit d95306f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/api-docs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: API Docs
3+
env:
4+
DEFAULT_KHIOPS_PYTHON_TUTORIAL_REVISION: main
35
on:
46
workflow_dispatch:
57
inputs:
@@ -8,6 +10,9 @@ on:
810
required: true
911
type: boolean
1012
default: false
13+
khiops-python-tutorial-revision:
14+
default: main
15+
description: khiops-python-tutorial repo revision
1116
image-tag:
1217
default: 10.7.0-b.0.0
1318
description: Development Docker Image Tag
@@ -44,6 +49,10 @@ jobs:
4449
# https://github.com/actions/runner/issues/2033#issuecomment-1598547465
4550
options: --user 1001
4651
steps:
52+
- name: Set parameters as env
53+
run: |
54+
KHIOPS_PYTHON_TUTORIAL_REVISION=${{ inputs.khiops-python-tutorial-revision || env.DEFAULT_KHIOPS_PYTHON_TUTORIAL_REVISION }}
55+
echo "KHIOPS_PYTHON_TUTORIAL_REVISION=$KHIOPS_PYTHON_TUTORIAL_REVISION" >> "$GITHUB_ENV"
4756
- name: Checkout khiops-python
4857
uses: actions/checkout@v4
4958
with:
@@ -52,6 +61,7 @@ jobs:
5261
uses: actions/checkout@v4
5362
with:
5463
repository: khiopsml/khiops-python-tutorial
64+
ref: ${{ env.KHIOPS_PYTHON_TUTORIAL_REVISION }}
5565
path: doc/khiops-python-tutorial
5666
- name: Add pip scripts directory to path
5767
run: echo PATH="$PATH:/github/home/.local/bin" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)