chore: Set free-form CI inputs as env vars (#5822)

This change moves CI values that could be user-provided into environment variables.
This commit is contained in:
Bart
2025-09-30 19:46:10 +02:00
committed by GitHub
parent 294e03ecf5
commit 072b1c442c
6 changed files with 42 additions and 24 deletions

View File

@@ -35,4 +35,7 @@ jobs:
- name: Generate strategy matrix
working-directory: .github/scripts/strategy-matrix
id: generate
run: ./generate.py ${{ inputs.strategy_matrix == 'all' && '--all' || '' }} ${{ inputs.os != '' && format('--config={0}.json', inputs.os) || '' }} >> "${GITHUB_OUTPUT}"
env:
GENERATE_CONFIG: ${{ inputs.os != '' && format('--config={0}.json', inputs.os) || '' }}
GENERATE_OPTION: ${{ inputs.strategy_matrix == 'all' && '--all' || '' }}
run: ./generate.py ${{ env.GENERATE_OPTION }} ${{ env.GENERATE_CONFIG }} >> "${GITHUB_OUTPUT}"