Skip to content

Commit 777749a

Browse files
committed
update example versions, fix up links, drop old caveat
"Environment reference" got removed in favor of other pages. The forum to report bugs has been closed for some time. The caveat about %TEMP% was removed as a "won't fix" issue. And the link just contributed by someone else was in French.
1 parent 2610644 commit 777749a

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

README.md

+8-21
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
test:
1414
strategy:
1515
matrix:
16-
go-version: [1.20.x, 1.21.x]
16+
go-version: [1.21.x, 1.22.x]
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818
runs-on: ${{ matrix.os }}
1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2221
with:
2322
go-version: ${{ matrix.go-version }}
23+
- uses: actions/checkout@v4
2424
- run: go test ./...
2525
```
2626
@@ -121,7 +121,7 @@ workflow triggers, or to set up dependencies via
121121

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

124-
Follow [these steps](https://docs.github.com/en/actions/security-guides/encrypted-secrets)
124+
Follow [these steps](https://docs.github.com/en/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

@@ -138,7 +138,9 @@ your own proxy. You'll need to add a
138138
[personal access token](https://github.com/settings/tokens) as a secret
139139
environment variable, as well as configure
140140
[GOPRIVATE](https://go.dev/ref/mod#private-modules).
141-
You can also directly used the token provided by [GitHub](https://docs.github.com/fr/enterprise-cloud@latest/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow) in the workflow.
141+
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)
143+
in the workflow.
142144
You can define anything as username in the URL, it is not taken into account by GitHub.
143145

144146
```yaml
@@ -189,9 +191,7 @@ jobs:
189191

190192
* Syntax and fields reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
191193

192-
* Environment reference: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
193-
194-
* To report bugs: https://github.com/orgs/community/discussions/categories/actions-and-packages
194+
* GitHub-hosted runners: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
195195

196196
## Caveats
197197

@@ -204,16 +204,3 @@ following `.gitattributes`:
204204
```gitattributes
205205
* -text
206206
```
207-
208-
* https://github.com/actions/runner-images/issues/712
209-
210-
`os.TempDir` on Windows will contain a short name, since `%TEMP%` also contains
211-
it. Note that case sensitivity doesn't matter, and that `os.Open` should still
212-
work; but some programs not treating short names might break.
213-
214-
```cmd
215-
> echo %USERPROFILE%
216-
C:\Users\runneradmin
217-
> echo %TEMP%
218-
C:\Users\RUNNER~1\AppData\Local\Temp
219-
```

0 commit comments

Comments
 (0)