You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/guides/building-and-testing-java-with-gradle.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ steps:
91
91
92
92
### Caching dependencies
93
93
94
-
You can cache your dependencies to speed up your workflow runs. After a successful run, your local Gradle package cache will be stored on GitHub Actions infrastructure. In future workflow runs, the cache will be restored so that dependencies don't need to be downloaded from remote package repositories. For more information, see "[Caching dependencies to speed up workflows](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)" and the [`cache` action](https://github.com/marketplace/actions/cache).
94
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can cache your dependencies to speed up your workflow runs. After a successful run, your local Gradle package cache will be stored on GitHub Actions infrastructure. In future workflow runs, the cache will be restored so that dependencies don't need to be downloaded from remote package repositories. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>" and the [`cache` action](https://github.com/marketplace/actions/cache).
Copy file name to clipboardExpand all lines: content/actions/guides/building-and-testing-java-with-maven.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ steps:
91
91
92
92
### Caching dependencies
93
93
94
-
You can cache your dependencies to speed up your workflow runs. After a successful run, your local Maven repository will be stored on GitHub Actions infrastructure. In future workflow runs, the cache will be restored so that dependencies don't need to be downloaded from remote Maven repositories. For more information, see "[Caching dependencies to speed up workflows](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)" and the [`cache` action](https://github.com/marketplace/actions/cache).
94
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can cache your dependencies to speed up your workflow runs. After a successful run, your local Maven repository will be stored on GitHub Actions infrastructure. In future workflow runs, the cache will be restored so that dependencies don't need to be downloaded from remote Maven repositories. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>" and the [`cache` action](https://github.com/marketplace/actions/cache).
Copy file name to clipboardExpand all lines: content/actions/guides/building-and-testing-nodejs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ If you don't specify a Node.js version, {% data variables.product.prodname_dotco
129
129
130
130
{% data variables.product.prodname_dotcom %}-hosted runners have npm and Yarn dependency managers installed. You can use npm and Yarn to install dependencies in your workflow before building and testing your code. The Windows and Linux {% data variables.product.prodname_dotcom %}-hosted runners also have Grunt, Gulp, and Bower installed.
131
131
132
-
You can also cache dependencies to speed up your workflow. For more information, see "[Caching dependencies to speed up your workflow](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)."
132
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can also cache dependencies to speed up your workflow. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
133
133
134
134
#### Example using npm
135
135
@@ -227,7 +227,7 @@ always-auth=true
227
227
228
228
#### Example caching dependencies
229
229
230
-
You can cache dependencies using a unique key, and restore the dependencies when you run future workflows using the `cache` action. For more information, see "[Caching dependencies to speed up workflows](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)" and the [`cache` action](https://github.com/marketplace/actions/cache).
230
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can cache dependencies using a unique key, and restore the dependencies when you run future workflows using the `cache` action. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>" and the [`cache` action](https://github.com/marketplace/actions/cache).
231
231
232
232
{% raw %}
233
233
```yaml
@@ -241,7 +241,7 @@ steps:
241
241
uses: actions/cache@v2
242
242
with:
243
243
# npm cache files are stored in `~/.npm` on Linux/macOS
Copy file name to clipboardExpand all lines: content/actions/guides/building-and-testing-powershell.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ We recommend that you have a basic understanding of PowerShell and Pester. For m
30
30
31
31
### Adding a workflow for Pester
32
32
33
-
To automate your testing with PowerShell and Pester, you can add a workflow that runs every time a change is pushed to your repository. In the following example, `Test-Path` is used to check that a file called `resultsfile.log` is present.
33
+
To automate your testing with PowerShell and Pester, you can add a workflow that runs every time a change is pushed to your repository. In the following example, `Test-Path` is used to check that a file called `resultsfile.log` is present.
34
34
35
35
This example workflow file must be added to your repository's `.github/workflows/` directory:
36
36
@@ -57,7 +57,7 @@ jobs:
57
57
{% endraw %}
58
58
59
59
* `shell: pwsh` - Configures the job to use PowerShell when running the `run` commands.
60
-
* `run: Test-Path resultsfile.log` - Check whether a file called `resultsfile.log` is present in the repository's root directory.
60
+
* `run: Test-Path resultsfile.log` - Check whether a file called `resultsfile.log` is present in the repository's root directory.
61
61
* `Should -Be $true` - Uses Pester to define an expected result. If the result is unexpected, then {% data variables.product.prodname_actions %} flags this as a failed test. For example:
@@ -83,15 +83,15 @@ The table below describes the locations for various PowerShell modules in each {
83
83
84
84
### Installing dependencies
85
85
86
-
{% data variables.product.prodname_dotcom %}-hosted runners have PowerShell 7 and Pester installed. You can use `Install-Module` to install additional dependencies from the PowerShell Gallery before building and testing your code.
86
+
{% data variables.product.prodname_dotcom %}-hosted runners have PowerShell 7 and Pester installed. You can use `Install-Module` to install additional dependencies from the PowerShell Gallery before building and testing your code.
87
87
88
88
{% note %}
89
89
90
90
**Note:** The pre-installed packages (such as Pester) used by {% data variables.product.prodname_dotcom %}-hosted runners are regularly updated, and can introduce significant changes. As a result, it is recommended that you always specify the required package versions by using `Install-Module` with `-MaximumVersion`.
91
91
92
92
{% endnote %}
93
93
94
-
You can also cache dependencies to speed up your workflow. For more information, see "[Caching dependencies to speed up your workflow](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)."
94
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can also cache dependencies to speed up your workflow. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
95
95
96
96
For example, the following job installs the `SqlServer` and `PSScriptAnalyzer` modules:
97
97
@@ -119,7 +119,7 @@ jobs:
119
119
120
120
#### Caching dependencies
121
121
122
-
You can cache PowerShell dependencies using a unique key, which allows you to restore the dependencies for future workflows with the [`cache`](https://github.com/marketplace/actions/cache) action. For more information, see "[Caching dependencies to speed up workflows](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)."
122
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can cache PowerShell dependencies using a unique key, which allows you to restore the dependencies for future workflows with the [`cache`](https://github.com/marketplace/actions/cache) action. For more information, see "<ahref="/actions/guides/caching-dependencies-to-speed-up-workflows"class="dotcom-only">Caching dependencies to speed up workflows</a>."
123
123
124
124
PowerShell caches its dependencies in different locations, depending on the runner's operating system. For example, the `path` location used in the following Ubuntu example will be different for a Windows operating system.
Copy file name to clipboardExpand all lines: content/actions/guides/building-and-testing-python.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,9 +141,9 @@ jobs:
141
141
uses: actions/setup-python@v2
142
142
with:
143
143
# Semantic version range syntax or exact version of a Python version
144
-
python-version: '3.x'
144
+
python-version: '3.x'
145
145
# Optional - x64 or x86 architecture, defaults to x64
146
-
architecture: 'x64'
146
+
architecture: 'x64'
147
147
# You can test your matrix by printing the current Python version
148
148
- name: Display Python version
149
149
run: python -c "import sys; print(sys.version)"
@@ -192,7 +192,7 @@ We recommend using `setup-python` to configure the version of Python used in you
192
192
193
193
{% data variables.product.prodname_dotcom %}-hosted runners have the pip package manager installed. You can use pip to install dependencies from the PyPI package registry before building and testing your code. For example, the YAML below installs or upgrades the `pip` package installer and the `setuptools` and `wheel` packages.
194
194
195
-
You can also cache dependencies to speed up your workflow. For more information, see "[Caching dependencies to speed up your workflow](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)."
195
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can also cache dependencies to speed up your workflow. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
196
196
197
197
{% raw %}
198
198
```yaml
@@ -228,7 +228,7 @@ steps:
228
228
229
229
#### Caching Dependencies
230
230
231
-
You can cache pip dependencies using a unique key, and restore the dependencies when you run future workflows using the [`cache`](https://github.com/marketplace/actions/cache) action. For more information, see "[Caching dependencies to speed up workflows](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)."
231
+
When using {% data variables.product.prodname_dotcom %}-hosted runners, you can cache pip dependencies using a unique key, and restore the dependencies when you run future workflows using the [`cache`](https://github.com/marketplace/actions/cache) action. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
232
232
233
233
Pip caches dependencies in different locations, depending on the operating system of the runner. The path you'll need to cache may differ from the Ubuntu example below depending on the operating system you use. For more information, see [Python caching examples](https://github.com/actions/cache/blob/main/examples.md#python---pip).
Copy file name to clipboardExpand all lines: content/actions/guides/building-and-testing-ruby.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ steps:
148
148
149
149
#### Caching dependencies
150
150
151
-
The `setup-ruby` actions provides a method to automatically handle the caching of your gems between runs.
151
+
If you are using {% data variables.product.prodname_dotcom %}-hosted runners, the `setup-ruby` actions provides a method to automatically handle the caching of your gems between runs.
152
152
153
153
To enable caching, set the following.
154
154
@@ -165,7 +165,7 @@ This will configure bundler to install your gems to `vendor/cache`. For each suc
165
165
166
166
**Caching without setup-ruby**
167
167
168
-
For greater control over caching, you can use the `actions/cache` Action directly. For more information, see "[Caching dependencies to speed up your workflow](/actions/automating-your-workflow-with-github-actions/caching-dependencies-to-speed-up-workflows)."
168
+
For greater control over caching, if you are using {% data variables.product.prodname_dotcom %}-hosted runners, you can use the `actions/cache` Action directly. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
Copy file name to clipboardExpand all lines: content/actions/learn-github-actions/managing-complex-workflows.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ versions:
12
12
13
13
### Overview
14
14
15
-
This article describes some of the advanced features of {% data variables.product.prodname_actions %} that help you work create more complex workflows.
15
+
This article describes some of the advanced features of {% data variables.product.prodname_actions %} that help you work create more complex workflows.
16
16
17
17
### Storing secrets
18
18
19
-
If your workflows use sensitive data, such as passwords or certificates, you can save these in {% data variables.product.prodname_dotcom %} as _secrets_ and then use them in your workflows as environment variables. This means that you will be able to create and share workflows without having to embed sensitive values directly in the YAML workflow.
19
+
If your workflows use sensitive data, such as passwords or certificates, you can save these in {% data variables.product.prodname_dotcom %} as _secrets_ and then use them in your workflows as environment variables. This means that you will be able to create and share workflows without having to embed sensitive values directly in the YAML workflow.
20
20
21
21
This example action demonstrates how to reference an existing secret as an environment variable, and send it as a parameter to an example command.
22
22
@@ -57,7 +57,7 @@ jobs:
57
57
needs: build
58
58
runs-on: ubuntu-latest
59
59
steps:
60
-
- run: ./test_server.sh
60
+
- run: ./test_server.sh
61
61
```
62
62
63
63
For more information, see [`jobs.<job_id>.needs`](/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds).
@@ -85,7 +85,7 @@ For more information, see [`jobs.<job_id>.strategy.matrix`](/actions/reference/w
85
85
86
86
### Caching dependencies
87
87
88
-
{% data variables.product.prodname_dotcom %}-hosted runners are started as fresh environments for each job, so if your jobs regularly reuse dependencies, you can consider caching these files to help improve performance. Once the cache is created, it is available to all workflows in the same repository.
88
+
{% data variables.product.prodname_dotcom %}-hosted runners are started as fresh environments for each job, so if your jobs regularly reuse dependencies, you can consider caching these files to help improve performance. Once the cache is created, it is available to all workflows in the same repository.
89
89
90
90
This example demonstrates how to cache the ` ~/.npm` directory:
91
91
@@ -106,7 +106,7 @@ jobs:
106
106
```
107
107
{% endraw %}
108
108
109
-
For more information, see "[Caching dependencies to speed up workflows](/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows)."
109
+
For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
110
110
111
111
### Using databases and service containers
112
112
@@ -136,7 +136,7 @@ For more information, see "[Using databases and service containers](/actions/con
136
136
137
137
### Using labels to route workflows
138
138
139
-
This feature helps you assign jobs to a specific self-hosted runner. If you want to be sure that a particular type of runner will process your job, you can use labels to control where jobs are executed. You can assign labels to a self-hosted runner, and then refer to these labels in your YAML workflow, ensuring that the job is routed in a predictable way.
139
+
This feature helps you assign jobs to a specific self-hosted runner. If you want to be sure that a particular type of runner will process your job, you can use labels to control where jobs are executed. You can assign labels to a self-hosted runner, and then refer to these labels in your YAML workflow, ensuring that the job is routed in a predictable way.
140
140
141
141
This example shows how a workflow can use labels to specify the required runner:
Copy file name to clipboardExpand all lines: content/actions/learn-github-actions/migrating-from-circleci-to-github-actions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ GitHub Actions
101
101
</tr>
102
102
</table>
103
103
104
-
For more information, see "[Caching dependencies to speed up workflows](/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows)."
104
+
{% data variables.product.prodname_actions %} caching is only applicable to {% data variables.product.prodname_dotcom %}-hosted runners. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
105
105
106
106
{% data variables.product.prodname_actions %} does not have an equivalent of CircleCI’s Docker Layer Caching (or DLC).
Copy file name to clipboardExpand all lines: content/actions/learn-github-actions/migrating-from-gitlab-cicd-to-github-actions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,7 +262,7 @@ jobs:
262
262
runs-on: ubuntu-latest
263
263
steps:
264
264
- run: echo "This job will be run first, in parallel with build_a"
265
-
265
+
266
266
test_ab:
267
267
runs-on: ubuntu-latest
268
268
needs: [build_a,build_b]
@@ -346,7 +346,7 @@ jobs:
346
346
</tr>
347
347
</table>
348
348
349
-
For more information, see "[Caching dependencies to speed up workflows](/actions/guides/caching-dependencies-to-speed-up-workflows)."
349
+
{% data variables.product.prodname_actions %} caching is only applicable to {% data variables.product.prodname_dotcom %}-hosted runners. For more information, see "<a href="/actions/guides/caching-dependencies-to-speed-up-workflows" class="dotcom-only">Caching dependencies to speed up workflows</a>."
350
350
351
351
### Artifacts
352
352
@@ -367,7 +367,7 @@ GitLab CI/CD
367
367
<td class="d-table-cell v-align-top">
368
368
{% raw %}
369
369
```yaml
370
-
script:
370
+
script:
371
371
artifacts:
372
372
paths:
373
373
- math-homework.txt
@@ -414,7 +414,7 @@ GitLab CI/CD
414
414
container-job:
415
415
variables:
416
416
POSTGRES_PASSWORD: postgres
417
-
# The hostname used to communicate with the
417
+
# The hostname used to communicate with the
418
418
# PostgreSQL service container
419
419
POSTGRES_HOST: postgres
420
420
# The default PostgreSQL port
@@ -423,10 +423,10 @@ container-job:
423
423
services:
424
424
- postgres
425
425
script:
426
-
# Performs a clean installation of all dependencies
426
+
# Performs a clean installation of all dependencies
427
427
# in the `package.json` file
428
428
- npm ci
429
-
# Runs a script that creates a PostgreSQL client,
429
+
# Runs a script that creates a PostgreSQL client,
430
430
# populates the client with data, and retrieves data
431
431
- node client.js
432
432
tags:
@@ -452,7 +452,7 @@ jobs:
452
452
- name: Check out repository code
453
453
uses: actions/checkout@v2
454
454
455
-
# Performs a clean installation of all dependencies
455
+
# Performs a clean installation of all dependencies
456
456
# in the `package.json` file
457
457
- name: Install dependencies
458
458
run: npm ci
@@ -462,7 +462,7 @@ jobs:
462
462
# populates the client with data, and retrieves data
0 commit comments