Skip to content

Commit 1310ddb

Browse files
authored
Merge branch 'main' into all-contributors/add-casals
2 parents 19369b1 + 7db4a3c commit 1310ddb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/actions/learn-github-actions/managing-complex-workflows.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ If your workflows use sensitive data, such as passwords or certificates, you can
2020

2121
This example action demonstrates how to reference an existing secret as an environment variable, and send it as a parameter to an example command.
2222

23+
{% raw %}
2324
```yaml
2425
jobs:
2526
example-job:
@@ -30,6 +31,7 @@ jobs:
3031
run: |
3132
example-command "$SUPER_SECRET"
3233
```
34+
{% endraw %}
3335
3436
For more information, see "[Creating and storing encrypted secrets](/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets)."
3537
@@ -62,6 +64,7 @@ For more information, see [`jobs.<job_id>.needs`](/actions/reference/workflow-sy
6264

6365
You can use a build matrix if you want your workflow to run tests across multiple combinations of operating systems, platforms, and languages. The build matrix is created using the `strategy` keyword, which receives the build options as an array. For example, this build matrix will run the job multiple times, using different versions of Node.js:
6466

67+
{% raw %}
6568
```yaml
6669
jobs:
6770
build:
@@ -74,6 +77,7 @@ jobs:
7477
with:
7578
node-version: ${{ matrix.node }}
7679
```
80+
{% endraw %}
7781

7882
For more information, see [`jobs.<job_id>.strategy.matrix`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix).
7983

@@ -83,6 +87,7 @@ For more information, see [`jobs.<job_id>.strategy.matrix`](/actions/reference/w
8387

8488
This example demonstrates how to cache the ` ~/.npm` directory:
8589

90+
{% raw %}
8691
```yaml
8792
jobs:
8893
example-job:
@@ -97,6 +102,7 @@ jobs:
97102
restore-keys: |
98103
${{ runner.os }}-build-${{ env.cache-name }}-
99104
```
105+
{% endraw %}
100106

101107
For more information, see "[Caching dependencies to speed up workflows](/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows)."
102108

0 commit comments

Comments
 (0)