docs: quote language versions in YAML examples (#28936)
This commit is contained in:
committed by
GitHub
parent
e39375cf6b
commit
c6525a9254
@@ -102,7 +102,7 @@ Each job can access the value defined in the matrix `node-version` array using t
|
||||
```yaml copy
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 18.x]
|
||||
node-version: ['14.x', '16.x', '18.x']
|
||||
|
||||
steps:
|
||||
- uses: {% data reusables.actions.action-checkout %}
|
||||
@@ -117,7 +117,7 @@ Alternatively, you can build and test with exact Node.js versions.
|
||||
```yaml copy
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.17.0, 17.9.0]
|
||||
node-version: ['10.17.0', '17.9.0']
|
||||
```
|
||||
|
||||
Or, you can build and test using a single version of Node.js too.
|
||||
|
||||
@@ -287,7 +287,7 @@ jobs:
|
||||
- uses: {% data reusables.actions.action-checkout %}
|
||||
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
ruby-version: '2.6'
|
||||
- run: bundle install
|
||||
- name: Rubocop
|
||||
run: rubocop
|
||||
@@ -328,7 +328,7 @@ jobs:
|
||||
- name: Set up Ruby 2.6
|
||||
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
ruby-version: '2.6'
|
||||
- run: bundle install
|
||||
|
||||
- name: Publish to GPR
|
||||
|
||||
@@ -390,7 +390,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
ruby: [2.5, 2.6.3]
|
||||
ruby: ['2.5', '2.6.3']
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
@@ -74,8 +74,8 @@ Below is an example comparing the syntax for each system.
|
||||
```yaml
|
||||
matrix:
|
||||
include:
|
||||
- rvm: 2.5
|
||||
- rvm: 2.6.3
|
||||
- rvm: '2.5'
|
||||
- rvm: '2.6.3'
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
ruby: [2.5, 2.6.3]
|
||||
ruby: ['2.5', '2.6.3']
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
@@ -9,10 +9,10 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- node-version: 14.x
|
||||
- node-version: '14.x'
|
||||
site: "prod"
|
||||
datacenter: "site-a"
|
||||
- node-version: 16.x
|
||||
- node-version: '16.x'
|
||||
site: "dev"
|
||||
datacenter: "site-b"
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user