9292 type : number
9393 required : false
9494 default : 60
95-
95+ python_version :
96+ type : string
97+ required : false
98+ node_version :
99+ type : string
100+ required : false
101+
96102 secrets :
97103 DATAVISYN_BOT_REPO_TOKEN :
98104 required : false
@@ -109,10 +115,10 @@ on:
109115
110116env :
111117 NPM_REGISTRY : " https://registry.npmjs.org/"
112- NODE_VERSION : " 20.9"
118+ NODE_VERSION : ${{ vars.NODE_VERSION || ' 20.9' }}
113119 PYPI_REGISTRY : " https://upload.pypi.org/legacy/"
114120 PYPI_USERNAME : " datavisyn"
115- PYTHON_VERSION : " 3.10"
121+ PYTHON_VERSION : ${{ vars.PYTHON_VERSION || ' 3.10' }}
116122 WORKFLOW_BRANCH : " main"
117123 POSTGRES_HOSTNAME : postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}
118124
@@ -155,9 +161,9 @@ jobs:
155161 # We probably won't need Rust on Node builds...
156162 # enable_rust: ${{ inputs.rust_enable }}
157163 run_parallel : ${{ inputs.run_parallel }}
158- node_version : ${{ secrets.NODE_VERSION || env.NODE_VERSION }}
164+ node_version : ${{ inputs.node_version || secrets.NODE_VERSION || env.NODE_VERSION }}
159165 npm_registry : ${{ env.NPM_REGISTRY }}
160- python_version : ${{ secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
166+ python_version : ${{ inputs.python_version || secrets.PYTHON_VERSION || env.PYTHON_VERSION }}
161167 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
162168 run_node_bundle : ${{ inputs.node_run_webpack }}
163169 enable_node_cache : ${{ inputs.runs_on != 'self-hosted' }}
@@ -195,9 +201,9 @@ jobs:
195201 enable_python : true
196202 enable_rust : ${{ inputs.rust_enable }}
197203 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 }}
199205 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 }}
201207 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
202208 run_node_bundle : ${{ inputs.node_run_webpack }}
203209 enable_node_cache : ${{ inputs.runs_on != 'self-hosted' }}
@@ -286,9 +292,9 @@ jobs:
286292 with :
287293 enable_rust : ${{ inputs.rust_enable }}
288294 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 }}
290296 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 }}
292298 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
293299 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
294300 enable_node_cache : ${{ inputs.cypress_runs_on != 'self-hosted' && inputs.runs_on != 'self-hosted' }}
@@ -429,9 +435,9 @@ jobs:
429435 with :
430436 enable_rust : ${{ inputs.rust_enable }}
431437 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 }}
433439 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 }}
435441 github_ro_token : ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
436442 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
437443 run_playwright_browser_install : true
0 commit comments