Skip to content

Commit 7aaba8c

Browse files
committed
amend links yet again
GitHub docs have been moved around once again.
1 parent e02d435 commit 7aaba8c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[GitHub Actions](https://github.com/features/actions) includes CI/CD for free
44
for Open Source repositories. This document contains information on making it
5-
work well for [Go](https://golang.org). See them [in
5+
work well for [Go](https://go.dev/). See them [in
66
action](https://github.com/mvdan/github-actions-golang/actions):
77

88
```yaml
@@ -48,7 +48,7 @@ Go 1.12 and later do the same if a `go.mod` file is present.
4848
#### How do I set environment variables?
4949

5050
They can be set up via `env` for an [entire
51-
workflow](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#env),
51+
workflow](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#env),
5252
a job, or for each step:
5353

5454
```yaml
@@ -60,7 +60,7 @@ jobs:
6060

6161
#### How do I set environment variables at run-time?
6262

63-
You can use [environment files](https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#environment-files)
63+
You can use [environment files](https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#environment-files)
6464
to set environment variables or add an element to `$PATH`. For example:
6565

6666
```yaml
@@ -109,13 +109,13 @@ You can also include Go's build cache, to improve incremental builds:
109109

110110
This is demonstrated via the `test-cache` job [in this very repository](https://github.com/mvdan/github-actions-golang/actions).
111111

112-
See [this guide](https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows)
112+
See [this guide](https://docs.github.com/en/actions/advanced-guides/caching-dependencies-to-speed-up-workflows)
113113
for more details.
114114

115115
#### How do I run a step conditionally?
116116

117117
You can use `if` conditionals, using their [custom expression
118-
language](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions):
118+
language](https://docs.github.com/en/actions/learn-github-actions/contexts):
119119

120120
```yaml
121121
- name: Run end-to-end tests on Linux
@@ -126,9 +126,9 @@ language](https://docs.github.com/en/actions/reference/context-and-expression-sy
126126
#### How do I set up a custom build matrix?
127127

128128
You can [include extra matrix
129-
jobs](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations),
129+
jobs](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-including-new-combinations),
130130
and you can [exclude specific matrix
131-
jobs](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix).
131+
jobs](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-excluding-configurations-from-a-matrix).
132132

133133
#### How do I run multiline scripts?
134134

@@ -144,11 +144,11 @@ jobs](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-ac
144144
The biggest difference is the UI; workflow results are shown separately.
145145
Grouping jobs in workflows can also be useful if one wants to customize the
146146
workflow triggers, or to set up dependencies via
147-
[needs](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds).
147+
[needs](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idneeds).
148148

149149
#### How do I set up a secret environment variable?
150150

151-
Follow [these steps](https://docs.github.com/en/actions/reference/encrypted-secrets)
151+
Follow [these steps](https://docs.github.com/en/actions/security-guides/encrypted-secrets)
152152
to set up the secret in the repo's settings. After adding a secret like
153153
`FOO_SECRET`, use it on a step as follows:
154154

@@ -165,7 +165,7 @@ It's possible to install modules from private GitHub repositories without using
165165
your own proxy. You'll need to add a
166166
[personal access token](https://github.com/settings/tokens) as a secret
167167
environment variable, as well as configure
168-
[GOPRIVATE](https://golang.org/ref/mod#private-modules).
168+
[GOPRIVATE](https://go.dev/ref/mod#private-modules).
169169

170170
```yaml
171171
- name: Configure git for private modules
@@ -215,7 +215,7 @@ jobs:
215215

216216
* Concepts, rate limits, etc: https://docs.github.com/en/actions/learn-github-actions
217217

218-
* Syntax and fields reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
218+
* Syntax and fields reference: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
219219

220220
* Environment reference: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
221221

0 commit comments

Comments
 (0)