Skip to content

Commit a68c34c

Browse files
heiskrCopilot
andauthored
Update redirected internal links in actions (tutorials (part 2)) (#62144)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4e0332d commit a68c34c

12 files changed

Lines changed: 85 additions & 85 deletions

content/actions/tutorials/migrate-to-github-actions/manual-migrations/migrate-from-travis-ci.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ This guide helps you migrate from Travis CI to {% data variables.product.prodnam
2828

2929
Before starting your migration to {% data variables.product.prodname_actions %}, it would be useful to become familiar with how it works:
3030

31-
* For a quick example that demonstrates a {% data variables.product.prodname_actions %} job, see [AUTOTITLE](/actions/quickstart).
32-
* To learn the essential {% data variables.product.prodname_actions %} concepts, see [AUTOTITLE](/actions/learn-github-actions/understanding-github-actions).
31+
* For a quick example that demonstrates a {% data variables.product.prodname_actions %} job, see [AUTOTITLE](/actions/get-started/quickstart).
32+
* To learn the essential {% data variables.product.prodname_actions %} concepts, see [AUTOTITLE](/actions/get-started/understand-github-actions).
3333

3434
## Comparing job execution
3535

@@ -41,28 +41,28 @@ To give you control over when CI tasks are executed, a {% data variables.product
4141

4242
### Using YAML syntax
4343

44-
Travis CI and {% data variables.product.prodname_actions %} both use YAML to create jobs and workflows, and these files are stored in the code's repository. For more information on how {% data variables.product.prodname_actions %} uses YAML, see [AUTOTITLE](/actions/learn-github-actions/understanding-github-actions#create-an-example-workflow).
44+
Travis CI and {% data variables.product.prodname_actions %} both use YAML to create jobs and workflows, and these files are stored in the code's repository. For more information on how {% data variables.product.prodname_actions %} uses YAML, see [AUTOTITLE](/actions/tutorials/create-an-example-workflow).
4545

4646
### Custom variables
4747

48-
Travis CI lets you set variables and share them between stages. Similarly, {% data variables.product.prodname_actions %} lets you define variables for a workflow. For more information, see [AUTOTITLE](/actions/learn-github-actions/variables).
48+
Travis CI lets you set variables and share them between stages. Similarly, {% data variables.product.prodname_actions %} lets you define variables for a workflow. For more information, see [AUTOTITLE](/actions/how-tos/write-workflows/choose-what-workflows-do/use-variables).
4949

5050
### Default variables
5151

52-
Travis CI and {% data variables.product.prodname_actions %} both include default environment variables that you can use in your YAML files. For {% data variables.product.prodname_actions %}, you can see these listed in [AUTOTITLE](/actions/reference/variables-reference#default-environment-variables).
52+
Travis CI and {% data variables.product.prodname_actions %} both include default environment variables that you can use in your YAML files. For {% data variables.product.prodname_actions %}, you can see these listed in [AUTOTITLE](/actions/reference/workflows-and-actions/variables#default-environment-variables).
5353

5454
### Parallel job processing
5555

56-
Travis CI can use `stages` to run jobs in parallel. Similarly, {% data variables.product.prodname_actions %} runs `jobs` in parallel. For more information, see [AUTOTITLE](/actions/using-workflows/about-workflows#creating-dependent-jobs).
56+
Travis CI can use `stages` to run jobs in parallel. Similarly, {% data variables.product.prodname_actions %} runs `jobs` in parallel. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#jobsjobidneeds).
5757

5858
### Status badges
5959

6060
Travis CI and {% data variables.product.prodname_actions %} both support status badges, which let you indicate whether a build is passing or failing.
61-
For more information, see [AUTOTITLE](/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge).
61+
For more information, see [AUTOTITLE](/actions/how-tos/monitor-workflows/add-a-status-badge).
6262

6363
### Using a matrix
6464

65-
Travis CI and {% data variables.product.prodname_actions %} both support a matrix, allowing you to perform testing using combinations of operating systems and software packages. For more information, see [AUTOTITLE](/actions/using-jobs/using-a-matrix-for-your-jobs).
65+
Travis CI and {% data variables.product.prodname_actions %} both support a matrix, allowing you to perform testing using combinations of operating systems and software packages. For more information, see [AUTOTITLE](/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations).
6666

6767
Below is an example comparing the syntax for each system.
6868

@@ -95,7 +95,7 @@ jobs:
9595
9696
### Targeting specific branches
9797
98-
Travis CI and {% data variables.product.prodname_actions %} both allow you to target your CI to a specific branch. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore).
98+
Travis CI and {% data variables.product.prodname_actions %} both allow you to target your CI to a specific branch. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#onpushbranchestagsbranches-ignoretags-ignore).
9999
100100
Below is an example of the syntax for each system.
101101
@@ -163,31 +163,31 @@ When migrating from Travis CI, consider the following key features in {% data va
163163

164164
### Storing secrets
165165

166-
{% data variables.product.prodname_actions %} allows you to store secrets and reference them in your jobs. {% data variables.product.prodname_actions %} organizations can limit which repositories can access organization secrets. Deployment protection rules can require manual approval for a workflow to access environment secrets. For more information, see [AUTOTITLE](/actions/security-for-github-actions/security-guides/about-secrets).
166+
{% data variables.product.prodname_actions %} allows you to store secrets and reference them in your jobs. {% data variables.product.prodname_actions %} organizations can limit which repositories can access organization secrets. Deployment protection rules can require manual approval for a workflow to access environment secrets. For more information, see [AUTOTITLE](/actions/concepts/security/secrets).
167167

168168
### Sharing files between jobs and workflows
169169

170-
{% data variables.product.prodname_actions %} includes integrated support for artifact storage, allowing you to share files between jobs in a workflow. You can also save the resulting files and share them with other workflows. For more information, see [AUTOTITLE](/actions/learn-github-actions/essential-features-of-github-actions#sharing-data-between-jobs).
170+
{% data variables.product.prodname_actions %} includes integrated support for artifact storage, allowing you to share files between jobs in a workflow. You can also save the resulting files and share them with other workflows. For more information, see [AUTOTITLE](/actions/get-started/understand-github-actions#sharing-data-between-jobs).
171171

172172
### Hosting your own runners
173173

174-
If your jobs require specific hardware or software, {% data variables.product.prodname_actions %} allows you to host your own runners and send your jobs to them for processing. {% data variables.product.prodname_actions %} also lets you use policies to control how these runners are accessed, granting access at the organization or repository level. For more information, see [AUTOTITLE](/actions/how-tos/managing-self-hosted-runners).
174+
If your jobs require specific hardware or software, {% data variables.product.prodname_actions %} allows you to host your own runners and send your jobs to them for processing. {% data variables.product.prodname_actions %} also lets you use policies to control how these runners are accessed, granting access at the organization or repository level. For more information, see [AUTOTITLE](/actions/how-tos/manage-runners/self-hosted-runners).
175175

176176
{% ifversion fpt or ghec %}
177177

178178
### Concurrent jobs and execution time
179179

180-
The concurrent jobs and workflow execution times in {% data variables.product.prodname_actions %} can vary depending on your {% data variables.product.company_short %} plan. For more information, see [AUTOTITLE](/actions/learn-github-actions/usage-limits-billing-and-administration).
180+
The concurrent jobs and workflow execution times in {% data variables.product.prodname_actions %} can vary depending on your {% data variables.product.company_short %} plan. For more information, see [AUTOTITLE](/actions/concepts/billing-and-usage).
181181

182182
{% endif %}
183183

184184
### Using different languages in {% data variables.product.prodname_actions %}
185185

186-
When working with different languages in {% data variables.product.prodname_actions %}, you can create a step in your job to set up your language dependencies. For more information about working with a particular language, see [AUTOTITLE](/actions/use-cases-and-examples/building-and-testing).
186+
When working with different languages in {% data variables.product.prodname_actions %}, you can create a step in your job to set up your language dependencies. For more information about working with a particular language, see [AUTOTITLE](/actions/tutorials/build-and-test-code).
187187

188188
## Executing scripts
189189

190-
{% data variables.product.prodname_actions %} can use `run` steps to run scripts or shell commands. To use a particular shell, you can specify the `shell` type when providing the path to the script. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun).
190+
{% data variables.product.prodname_actions %} can use `run` steps to run scripts or shell commands. To use a particular shell, you can specify the `shell` type when providing the path to the script. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsrun).
191191

192192
For example:
193193

@@ -204,15 +204,15 @@ When migrating to {% data variables.product.prodname_actions %}, there are diffe
204204

205205
### Script error handling
206206

207-
{% data variables.product.prodname_actions %} stops a job immediately if one of the steps returns an error code. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference).
207+
{% data variables.product.prodname_actions %} stops a job immediately if one of the steps returns an error code. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#exit-codes-and-error-action-preference).
208208

209209
### Job error handling
210210

211-
{% data variables.product.prodname_actions %} uses `if` conditionals to execute jobs or steps in certain situations. For example, you can run a step when another step results in a `failure()`. For more information, see [AUTOTITLE](/actions/using-workflows/workflow-syntax-for-github-actions#example-using-status-check-functions). You can also use [`continue-on-error`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idcontinue-on-error) to prevent a workflow run from stopping when a job fails.
211+
{% data variables.product.prodname_actions %} uses `if` conditionals to execute jobs or steps in certain situations. For example, you can run a step when another step results in a `failure()`. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#example-using-status-check-functions). You can also use [`continue-on-error`](/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idcontinue-on-error) to prevent a workflow run from stopping when a job fails.
212212

213213
## Migrating syntax for conditionals and expressions
214214

215-
To run jobs under conditional expressions, Travis CI and {% data variables.product.prodname_actions %} share a similar `if` condition syntax. {% data variables.product.prodname_actions %} lets you use the `if` conditional to prevent a job or step from running unless a condition is met. For more information, see [AUTOTITLE](/actions/learn-github-actions/expressions).
215+
To run jobs under conditional expressions, Travis CI and {% data variables.product.prodname_actions %} share a similar `if` condition syntax. {% data variables.product.prodname_actions %} lets you use the `if` conditional to prevent a job or step from running unless a condition is met. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/expressions).
216216

217217
This example demonstrates how an `if` conditional can control whether a step is executed:
218218

@@ -227,7 +227,7 @@ jobs:
227227

228228
## Migrating phases to steps
229229

230-
Where Travis CI uses _phases_ to run _steps_, {% data variables.product.prodname_actions %} has _steps_ which execute _actions_. You can find prebuilt actions in the [{% data variables.product.prodname_marketplace %}](https://github.com/marketplace?type=actions), or you can create your own actions. For more information, see [AUTOTITLE](/actions/creating-actions).
230+
Where Travis CI uses _phases_ to run _steps_, {% data variables.product.prodname_actions %} has _steps_ which execute _actions_. You can find prebuilt actions in the [{% data variables.product.prodname_marketplace %}](https://github.com/marketplace?type=actions), or you can create your own actions. For more information, see [AUTOTITLE](/actions/how-tos/reuse-automations).
231231

232232
Below is an example of the syntax for each system.
233233

@@ -349,4 +349,4 @@ jobs:
349349

350350
## Next steps
351351

352-
To continue learning about the main features of {% data variables.product.prodname_actions %}, see [AUTOTITLE](/actions/learn-github-actions).
352+
To continue learning about the main features of {% data variables.product.prodname_actions %}, see [AUTOTITLE](/actions/how-tos/write-workflows).

content/actions/tutorials/publish-packages/publish-docker-images.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ This guide shows you how to create a workflow that performs a Docker build, and
2828
2929
## Prerequisites
3030

31-
We recommend that you have a basic understanding of workflow configuration options and how to create a workflow file. For more information, see [AUTOTITLE](/actions/learn-github-actions).
31+
We recommend that you have a basic understanding of workflow configuration options and how to create a workflow file. For more information, see [AUTOTITLE](/actions/how-tos/write-workflows).
3232

3333
You might also find it helpful to have a basic understanding of the following:
3434

35-
* [AUTOTITLE](/actions/security-guides/using-secrets-in-github-actions)
36-
* [AUTOTITLE](/actions/security-guides/automatic-token-authentication){% ifversion fpt or ghec %}
35+
* [AUTOTITLE](/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets)
36+
* [AUTOTITLE](/actions/tutorials/authenticate-with-github_token){% ifversion fpt or ghec %}
3737
* [AUTOTITLE](/packages/working-with-a-github-packages-registry/working-with-the-container-registry){% else %}
3838
* [AUTOTITLE](/packages/working-with-a-github-packages-registry/working-with-the-docker-registry){% endif %}
3939

@@ -58,7 +58,7 @@ In the example workflow below, we use the Docker `login-action` and `build-push-
5858
To push to Docker Hub, you will need to have a Docker Hub account, and have a Docker Hub repository created. For more information, see [Pushing a Docker container image to Docker Hub](https://docs.docker.com/docker-hub/quickstart/#step-3-build-and-push-an-image-to-docker-hub) in the Docker documentation.
5959

6060
The `login-action` options required for Docker Hub are:
61-
* `username` and `password`: This is your Docker Hub username and password. We recommend storing your Docker Hub username and password as secrets so they aren't exposed in your workflow file. For more information, see [AUTOTITLE](/actions/security-guides/using-secrets-in-github-actions).
61+
* `username` and `password`: This is your Docker Hub username and password. We recommend storing your Docker Hub username and password as secrets so they aren't exposed in your workflow file. For more information, see [AUTOTITLE](/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets).
6262

6363
The `metadata-action` option required for Docker Hub is:
6464
* `images`: The namespace and name for the Docker image you are building/pushing to Docker Hub.
@@ -139,8 +139,8 @@ In the example workflow below, we use the Docker `login-action`{% ifversion fpt
139139

140140
The `login-action` options required for {% data variables.product.prodname_registry %} are:
141141
* `registry`: Must be set to {% ifversion fpt or ghec %}`ghcr.io`{% elsif ghes %}`{% data reusables.package_registry.container-registry-hostname %}`{% endif %}.
142-
* `username`: You can use the {% raw %}`${{ github.actor }}`{% endraw %} context to automatically use the username of the user that triggered the workflow run. For more information, see [AUTOTITLE](/actions/learn-github-actions/contexts#github-context).
143-
* `password`: You can use the automatically-generated `GITHUB_TOKEN` secret for the password. For more information, see [AUTOTITLE](/actions/security-guides/automatic-token-authentication).
142+
* `username`: You can use the {% raw %}`${{ github.actor }}`{% endraw %} context to automatically use the username of the user that triggered the workflow run. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/contexts#github-context).
143+
* `password`: You can use the automatically-generated `GITHUB_TOKEN` secret for the password. For more information, see [AUTOTITLE](/actions/tutorials/authenticate-with-github_token).
144144

145145
{% ifversion fpt or ghec %}
146146
The `metadata-action` option required for {% data variables.product.prodname_registry %} is:

0 commit comments

Comments
 (0)