Skip to content

Commit 72e26aa

Browse files
committed
README: fix links once more
GitHub loves moving these pages around with redirects.
1 parent c1d2e9f commit 72e26aa

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
## Summary
2828
2929
Each workflow file has a number of jobs, which get run `on` specified events,
30-
and run concurrently with each other. You can have workflow [status badges](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge).
30+
and run concurrently with each other. You can have workflow [status badges](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/monitoring-workflows/adding-a-workflow-status-badge).
3131

3232
Each `job` runs on a configuration `matrix`. For example, we can test two major
3333
Go versions on three operating systems.
@@ -42,7 +42,7 @@ Note that `name` fields are optional.
4242
#### How do I set environment variables?
4343

4444
They can be set up via `env` for an [entire
45-
workflow](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#env),
45+
workflow](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#env),
4646
a job, or for each step:
4747

4848
```yaml
@@ -54,7 +54,7 @@ jobs:
5454

5555
#### How do I set environment variables at run-time?
5656

57-
You can use [environment files](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files)
57+
You can use [environment files](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#environment-files)
5858
to set environment variables or add an element to `$PATH`. For example:
5959

6060
```yaml
@@ -83,13 +83,13 @@ custom caching, for example to only keep `GOMODCACHE`:
8383
${{ runner.os }}-go-
8484
```
8585

86-
See [this guide](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows)
86+
See [this guide](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows)
8787
for more details.
8888

8989
#### How do I run a step conditionally?
9090

9191
You can use `if` conditionals, using their [custom expression
92-
language](https://docs.github.com/en/actions/learn-github-actions/contexts):
92+
language](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs):
9393

9494
```yaml
9595
- if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
@@ -99,9 +99,9 @@ language](https://docs.github.com/en/actions/learn-github-actions/contexts):
9999
#### How do I set up a custom build matrix?
100100

101101
You can [include extra matrix
102-
jobs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-new-combinations),
102+
jobs](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-including-new-combinations),
103103
and you can [exclude specific matrix
104-
jobs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix).
104+
jobs](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix).
105105

106106
#### How do I run multiline scripts?
107107

@@ -117,11 +117,11 @@ jobs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-git
117117
The biggest difference is the UI; workflow results are shown separately.
118118
Grouping jobs in workflows can also be useful if one wants to customize the
119119
workflow triggers, or to set up dependencies via
120-
[needs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds).
120+
[needs](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds).
121121

122122
#### How do I set up a secret environment variable?
123123

124-
Follow [these steps](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)
124+
Follow [these steps](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions)
125125
to set up the secret in the repo's settings. After adding a secret like
126126
`FOO_SECRET`, use it on a step as follows:
127127

@@ -139,7 +139,7 @@ your own proxy. You'll need to add a
139139
environment variable, as well as configure
140140
[GOPRIVATE](https://go.dev/ref/mod#private-modules).
141141
You can also directly used the token
142-
[provided by GitHub](https://docs.github.com/en/enterprise-cloud@latest/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow)
142+
[provided by GitHub](https://docs.github.com/en/enterprise-cloud@latest/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow)
143143
in the workflow.
144144
You can define anything as username in the URL, it is not taken into account by GitHub.
145145

@@ -168,11 +168,11 @@ Use `sudo apt`, making sure to only run the step on Linux:
168168

169169
## Quick links
170170

171-
* Concepts, rate limits, etc: https://docs.github.com/en/actions/learn-github-actions
171+
* Concepts, rate limits, etc: https://docs.github.com/en/actions/writing-workflows
172172

173-
* Syntax and fields reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
173+
* Syntax and fields reference: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
174174

175-
* GitHub-hosted runners: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
175+
* GitHub-hosted runners: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners
176176

177177
## Caveats
178178

0 commit comments

Comments
 (0)