Skip to content

Commit c6525a9

Browse files
authored
docs: quote language versions in YAML examples (#28936)
1 parent e39375c commit c6525a9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

content/actions/automating-builds-and-tests/building-and-testing-nodejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Each job can access the value defined in the matrix `node-version` array using t
102102
```yaml copy
103103
strategy:
104104
matrix:
105-
node-version: [14.x, 16.x, 18.x]
105+
node-version: ['14.x', '16.x', '18.x']
106106
107107
steps:
108108
- uses: {% data reusables.actions.action-checkout %}
@@ -117,7 +117,7 @@ Alternatively, you can build and test with exact Node.js versions.
117117
```yaml copy
118118
strategy:
119119
matrix:
120-
node-version: [10.17.0, 17.9.0]
120+
node-version: ['10.17.0', '17.9.0']
121121
```
122122

123123
Or, you can build and test using a single version of Node.js too.

content/actions/automating-builds-and-tests/building-and-testing-ruby.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ jobs:
287287
- uses: {% data reusables.actions.action-checkout %}
288288
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
289289
with:
290-
ruby-version: 2.6
290+
ruby-version: '2.6'
291291
- run: bundle install
292292
- name: Rubocop
293293
run: rubocop
@@ -328,7 +328,7 @@ jobs:
328328
- name: Set up Ruby 2.6
329329
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
330330
with:
331-
ruby-version: 2.6
331+
ruby-version: '2.6'
332332
- run: bundle install
333333

334334
- name: Publish to GPR

content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-circleci-to-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ jobs:
390390
391391
strategy:
392392
matrix:
393-
ruby: [2.5, 2.6.3]
393+
ruby: ['2.5', '2.6.3']
394394
395395
runs-on: ubuntu-latest
396396

content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ Below is an example comparing the syntax for each system.
7474
```yaml
7575
matrix:
7676
include:
77-
- rvm: 2.5
78-
- rvm: 2.6.3
77+
- rvm: '2.5'
78+
- rvm: '2.6.3'
7979
```
8080
8181
{% endraw %}
@@ -89,7 +89,7 @@ jobs:
8989
build:
9090
strategy:
9191
matrix:
92-
ruby: [2.5, 2.6.3]
92+
ruby: ['2.5', '2.6.3']
9393
```
9494
9595
{% endraw %}

data/reusables/actions/matrix-variable-example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
include:
12-
- node-version: 14.x
12+
- node-version: '14.x'
1313
site: "prod"
1414
datacenter: "site-a"
15-
- node-version: 16.x
15+
- node-version: '16.x'
1616
site: "dev"
1717
datacenter: "site-b"
1818
steps:

0 commit comments

Comments
 (0)