Skip to content

Commit

Permalink
Merge pull request #33719 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot committed Jun 26, 2024
2 parents 0d139bc + e6a718f commit aed90a6
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions data/reusables/actions/jobs/matrix-used-twice.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 %}
```

0 comments on commit aed90a6

Please sign in to comment.