Skip to content

Commit 5fb0e75

Browse files
authored
Merge pull request #392 from KhiopsML/customize-khiops-python-tutorial-ref
Customize khiops python tutorial ref
2 parents ad4674b + f4c585d commit 5fb0e75

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: 10.3.1.0
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: 10.3.1.0
15+
description: khiops-python-tutorial repo revision
1116
image-tag:
1217
default: latest
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)