From efa4dcb24b89daeff5f80c0b258b962c256f9221 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 3 Aug 2022 14:18:20 -0600 Subject: [PATCH 1/3] fix: bug with matrix job --- .github/workflows/manual-matrix-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-matrix-test.yml b/.github/workflows/manual-matrix-test.yml index 822b3957842..4b0b8d5e3e6 100644 --- a/.github/workflows/manual-matrix-test.yml +++ b/.github/workflows/manual-matrix-test.yml @@ -8,7 +8,7 @@ jobs: name: Get changes runs-on: ubuntu-latest outputs: - matrix: "{\"container\": ${{ toJson(steps.changed-files.outputs.all_changed_files) }} }" + matrix: "{\"container\": ${{ steps.changed-files.outputs.all_changed_files }} }" steps: - name: Checkout uses: actions/checkout@v3 From 1e828ddc91ba3f9ebd16a3d685911a2a6dfff49a Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 3 Aug 2022 14:30:31 -0600 Subject: [PATCH 2/3] fix: bug with matrix job --- .github/workflows/manual-matrix-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual-matrix-test.yml b/.github/workflows/manual-matrix-test.yml index 4b0b8d5e3e6..e8d07599514 100644 --- a/.github/workflows/manual-matrix-test.yml +++ b/.github/workflows/manual-matrix-test.yml @@ -8,7 +8,7 @@ jobs: name: Get changes runs-on: ubuntu-latest outputs: - matrix: "{\"container\": ${{ steps.changed-files.outputs.all_changed_files }} }" + matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - name: Checkout uses: actions/checkout@v3 @@ -23,6 +23,9 @@ jobs: run: | echo '${{ toJSON(steps.changed-files.outputs.all_changed_files) }}' + - id: set-matrix + run: echo "::set-output name=matrix::{\"container\":${{ toJSON(steps.changed-files.outputs.all_changed_files) }}}" + matrix-job: name: Run Matrix Job runs-on: ubuntu-latest From 1a2ba517ad20d3bd46240ff384997a93fb0986ac Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 3 Aug 2022 14:32:49 -0600 Subject: [PATCH 3/3] update action --- .github/workflows/manual-matrix-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-matrix-test.yml b/.github/workflows/manual-matrix-test.yml index e8d07599514..3f84454ebab 100644 --- a/.github/workflows/manual-matrix-test.yml +++ b/.github/workflows/manual-matrix-test.yml @@ -21,10 +21,10 @@ jobs: json: true - name: List all changed files run: | - echo '${{ toJSON(steps.changed-files.outputs.all_changed_files) }}' + echo '${{ steps.changed-files.outputs.all_changed_files }}' - id: set-matrix - run: echo "::set-output name=matrix::{\"container\":${{ toJSON(steps.changed-files.outputs.all_changed_files) }}}" + run: echo "::set-output name=matrix::{\"container\":${{ steps.changed-files.outputs.all_changed_files }}}" matrix-job: name: Run Matrix Job