From 6f005cfdf69ea121b4431a00d8050656412d156d Mon Sep 17 00:00:00 2001 From: Sahara Yousuf Date: Thu, 18 Apr 2024 15:32:29 -0500 Subject: [PATCH] Add job that retrieves MATRIX_DIR from env --- .github/workflows/test.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0768ac2..3d21df5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -98,15 +98,25 @@ env: ] jobs: + get-matrix-dir-from-env: + name: Get MATRIX_DIR + runs-on: windows-latest + outputs: + MATRIX_DIR: ${{ env.MATRIX_DIR }} + steps: + - run: | + echo "Set MATRIX_DIR environment variable as output" + run-samples-windows: runs-on: windows-latest + needs: [get-matrix-dir-from-env] defaults: run: shell: bash strategy: fail-fast: false matrix: - dir: ${{ fromJSON(vars.MATRIX_DIR) }} + dir: ${{ fromJSON(needs.get-matrix-dir-from-env.outputs.MATRIX_DIR) }} steps: - name: Checkout uses: actions/checkout@v4