|
92 | 92 | type: number |
93 | 93 | required: false |
94 | 94 | default: 60 |
95 | | - |
| 95 | + python_version: |
| 96 | + type: string |
| 97 | + required: false |
| 98 | + node_version: |
| 99 | + type: string |
| 100 | + required: false |
| 101 | + |
96 | 102 | secrets: |
97 | 103 | DATAVISYN_BOT_REPO_TOKEN: |
98 | 104 | required: false |
|
109 | 115 |
|
110 | 116 | env: |
111 | 117 | NPM_REGISTRY: "https://registry.npmjs.org/" |
112 | | - NODE_VERSION: "20.9" |
| 118 | + NODE_VERSION: ${{ vars.NODE_VERSION || "3.10" }} |
113 | 119 | PYPI_REGISTRY: "https://upload.pypi.org/legacy/" |
114 | 120 | PYPI_USERNAME: "datavisyn" |
115 | 121 | PYTHON_VERSION: ${{ vars.PYTHON_VERSION || "3.10" }} |
@@ -155,9 +161,9 @@ jobs: |
155 | 161 | # We probably won't need Rust on Node builds... |
156 | 162 | # enable_rust: ${{ inputs.rust_enable }} |
157 | 163 | run_parallel: ${{ inputs.run_parallel }} |
158 | | - node_version: ${{ secrets.NODE_VERSION || env.NODE_VERSION }} |
| 164 | + node_version: ${{ inputs.node_version || inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }} |
159 | 165 | npm_registry: ${{ env.NPM_REGISTRY }} |
160 | | - python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
| 166 | + python_version: ${{ inputs.python_version || inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
161 | 167 | github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
162 | 168 | run_node_bundle: ${{ inputs.node_run_webpack }} |
163 | 169 | enable_node_cache: ${{ inputs.runs_on != 'self-hosted' }} |
@@ -195,9 +201,9 @@ jobs: |
195 | 201 | enable_python: true |
196 | 202 | enable_rust: ${{ inputs.rust_enable }} |
197 | 203 | run_parallel: ${{ inputs.run_parallel }} |
198 | | - node_version: ${{ secrets.NODE_VERSION || env.NODE_VERSION }} |
| 204 | + node_version: ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }} |
199 | 205 | npm_registry: ${{ env.NPM_REGISTRY }} |
200 | | - python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
| 206 | + python_version: ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
201 | 207 | github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
202 | 208 | run_node_bundle: ${{ inputs.node_run_webpack }} |
203 | 209 | enable_node_cache: ${{ inputs.runs_on != 'self-hosted' }} |
@@ -286,9 +292,9 @@ jobs: |
286 | 292 | with: |
287 | 293 | enable_rust: ${{ inputs.rust_enable }} |
288 | 294 | run_parallel: ${{ inputs.run_parallel }} |
289 | | - node_version: ${{ secrets.NODE_VERSION || env.NODE_VERSION }} |
| 295 | + node_version: ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }} |
290 | 296 | npm_registry: ${{ env.NPM_REGISTRY }} |
291 | | - python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
| 297 | + python_version: ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
292 | 298 | github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
293 | 299 | run_node_bundle: false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install |
294 | 300 | enable_node_cache: ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }} |
@@ -429,9 +435,9 @@ jobs: |
429 | 435 | with: |
430 | 436 | enable_rust: ${{ inputs.rust_enable }} |
431 | 437 | run_parallel: ${{ inputs.run_parallel }} |
432 | | - node_version: ${{ secrets.NODE_VERSION || env.NODE_VERSION }} |
| 438 | + node_version: ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }} |
433 | 439 | npm_registry: ${{ env.NPM_REGISTRY }} |
434 | | - python_version: ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
| 440 | + python_version: ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }} |
435 | 441 | github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }} |
436 | 442 | run_node_bundle: false # Disable the build here and call afterwards, as otherwise the yarn run env:decrypt will fail due to a missing yarn install |
437 | 443 | run_playwright_browser_install: true |
|
0 commit comments