From e6a718fac359b3e037caf0cfc1f04c36dc9cfe5b Mon Sep 17 00:00:00 2001 From: Joe Clark <31087804+jc-clark@users.noreply.github.com> Date: Wed, 26 Jun 2024 11:19:37 -0700 Subject: [PATCH] Bug fix for tools and automations Actions matrix example (#51408) --- .../actions/jobs/matrix-used-twice.md | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/data/reusables/actions/jobs/matrix-used-twice.md b/data/reusables/actions/jobs/matrix-used-twice.md index 9815147444dd..e4b708f8e2c5 100644 --- a/data/reusables/actions/jobs/matrix-used-twice.md +++ b/data/reusables/actions/jobs/matrix-used-twice.md @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest outputs: - colors: ${{ steps.colors.outputs.colors }} + colors: {% raw %}${{ steps.colors.outputs.colors }}{% endraw %} steps: - name: Define Colors @@ -26,21 +26,18 @@ jobs: needs: define-matrix strategy: matrix: -{% raw %} - color: ${{ fromJSON(needs.define-matrix.outputs.colors) }} -{% endraw %} + color: {% raw %}${{ fromJSON(needs.define-matrix.outputs.colors) }}{% endraw %} steps: - name: Define Color env: - color: ${{ matrix.color }} + color: {% raw %}${{ matrix.color }}{% endraw %} run: | echo "$color" > color - name: Produce Artifact uses: {% data reusables.actions.action-upload-artifact %} -{% raw %} with: - name: ${{ matrix.color }} + name: {% raw %}${{ matrix.color }}{% endraw %} path: color consume-artifacts: @@ -50,18 +47,15 @@ jobs: - produce-artifacts strategy: matrix: - color: ${{ fromJSON(needs.define-matrix.outputs.colors) }} + color: {% raw %}${{ fromJSON(needs.define-matrix.outputs.colors) }}{% endraw %} steps: - name: Retrieve Artifact -{% endraw %} uses: {% data reusables.actions.action-download-artifact %} -{% raw %} with: - name: ${{ matrix.color }} - + name: {% raw %}${{ matrix.color }}{% endraw %} + - name: Report Color run: | cat color -{% endraw %} ```