Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bddcbf0

Browse files
committed
consistently use syntax highlighting in the README
1 parent f19f0bb commit bddcbf0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ for Open Source repositories. This document contains information on making it
55
work well for [Go](https://github.com/features/actions). See them [in
66
action](https://github.com/mvdan/github-actions-golang/actions):
77

8-
```
8+
```yaml
99
$ cat .github/workflows/test.yml
1010
on: [push, pull_request]
1111
name: Test
@@ -50,7 +50,7 @@ They can be set up via `env` for an [entire
5050
workflow](https://help.github.com/en/articles/workflow-syntax-for-github-actions#env),
5151
a job, or for each step:
5252

53-
```
53+
```yaml
5454
env:
5555
GOPROXY: "https://proxy.company.com"
5656
jobs:
@@ -67,7 +67,7 @@ to persist Go's module download and build caches.
6767
You can use `if` conditionals, using their [custom expression
6868
language](https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions):
6969

70-
```
70+
```yaml
7171
- name: Run end-to-end tests on Linux
7272
if: github.event_name == 'push' && matrix.platform == 'ubuntu-latest'
7373
run: go run ./endtoend
@@ -82,7 +82,7 @@ jobs](https://help.github.com/en/articles/workflow-syntax-for-github-actions#exa
8282

8383
#### How do I run multiline scripts?
8484

85-
```
85+
```yaml
8686
- name: Series of commands
8787
run: |
8888
go test ./...
@@ -101,7 +101,7 @@ Follow [these steps](https://help.github.com/en/articles/virtual-environments-fo
101101
to set up the secret in the repo's settings. After adding a secret like
102102
`FOO_SECRET`, use it on a step as follows:
103103

104-
```
104+
```yaml
105105
- name: Command that requires secret
106106
run: some-command
107107
env:
@@ -136,7 +136,7 @@ Use `sudo apt`, making sure to only run the step on Linux:
136136

137137
Declare GOPATH and clone inside it:
138138

139-
```
139+
```yaml
140140
jobs:
141141
test-gopath:
142142
env:
@@ -173,7 +173,7 @@ paths like `$(go env GOPATH)/bin/program`.
173173
your plaintext `testdata` files on Windows. To work around this, set up the
174174
following `.gitattributes`:
175175

176-
```
176+
```gitattributes
177177
* -text
178178
```
179179

@@ -192,9 +192,9 @@ manually:
192192
it. Note that case sensitivity doesn't matter, and that `os.Open` should still
193193
work; but some programs not treaing short names might break.
194194

195-
```
196-
$ echo %USERPROFILE% # i.e. $HOME
195+
```cmd
196+
> echo %USERPROFILE%
197197
C:\Users\runneradmin
198-
$ echo %TEMP% # a shortened version of $HOME/AppData/Local/Temp
198+
> echo %TEMP%
199199
C:\Users\RUNNER~1\AppData\Local\Temp
200200
```

0 commit comments

Comments
 (0)