Skip to content

Add raw tags to code blocks #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ If your workflows use sensitive data, such as passwords or certificates, you can

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

{% raw %}
```yaml
jobs:
example-job:
Expand All @@ -30,6 +31,7 @@ jobs:
run: |
example-command "$SUPER_SECRET"
```
{% endraw %}

For more information, see "[Creating and storing encrypted secrets](/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets)."

Expand Down Expand Up @@ -62,6 +64,7 @@ For more information, see [`jobs.<job_id>.needs`](/actions/reference/workflow-sy

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:

{% raw %}
```yaml
jobs:
build:
Expand All @@ -74,6 +77,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
```
{% endraw %}

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

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

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

{% raw %}
```yaml
jobs:
example-job:
Expand All @@ -97,6 +102,7 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
```
{% endraw %}

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

Expand Down