From 4eba5a9cb0773c3a3a06d79710e8d794e3e4dc4f Mon Sep 17 00:00:00 2001 From: mitchelbaker-cisa <149098823+mitchelbaker-cisa@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:15:37 -0700 Subject: [PATCH] Update run_smoke_test.yml --- .github/workflows/run_smoke_test.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run_smoke_test.yml b/.github/workflows/run_smoke_test.yml index 236a37bb..6303168f 100644 --- a/.github/workflows/run_smoke_test.yml +++ b/.github/workflows/run_smoke_test.yml @@ -18,11 +18,11 @@ on: os: description: "Choose operating system(s), format must be an array of strings:" type: string - default: "['windows-latest', 'macos-latest']" + default: "'windows-latest', 'macos-latest'" python-version: description: "Choose python version(s), format must be an array of strings:" type: string - default: "['3.10']" + default: "'3.10'" opa-version: description: "Choose OPA version" required: true @@ -30,8 +30,8 @@ on: default: "0.59.0" env: - OS_DEFAULT: "['windows-latest', 'macos-latest']" - PYTHON_VERSION_DEFAULT: "['3.10']" + OS_DEFAULT: ${{ inputs.os || "'windows-latest', 'macos-latest'" }} + PYTHON_VERSION_DEFAULT: ${{ inputs.python-version || "'3.10'" }} jobs: smoke-test: @@ -39,10 +39,12 @@ jobs: strategy: fail-fast: false matrix: - os: ${{ fromJSON(inputs.os) }} + #os: ${{ fromJSON(inputs.os) }} + os: ['${{ env.OS_DEFAULT }}'] # See https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json, # ctrl + f and search "python-3..-" for supported versions - python-version: ${{ fromJSON(inputs.python-version) }} + #python-version: ${{ fromJSON(inputs.python-version) }} + python-version: ['${{ env.PYTHON_VERSION_DEFAULT }}'] runs-on: ${{ matrix.os }} steps: - name: Checkout Repository