1
0
mirror of synced 2025-12-20 02:19:14 -05:00

docs: quote language versions in YAML examples (#28936)

This commit is contained in:
Gonçalo Montalvão Marques
2023-10-06 19:21:32 +01:00
committed by GitHub
parent e39375cf6b
commit c6525a9254
5 changed files with 10 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ Each job can access the value defined in the matrix `node-version` array using t
```yaml copy ```yaml copy
strategy: strategy:
matrix: matrix:
node-version: [14.x, 16.x, 18.x] node-version: ['14.x', '16.x', '18.x']
steps: steps:
- uses: {% data reusables.actions.action-checkout %} - uses: {% data reusables.actions.action-checkout %}
@@ -117,7 +117,7 @@ Alternatively, you can build and test with exact Node.js versions.
```yaml copy ```yaml copy
strategy: strategy:
matrix: 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. Or, you can build and test using a single version of Node.js too.

View File

@@ -287,7 +287,7 @@ jobs:
- uses: {% data reusables.actions.action-checkout %} - uses: {% data reusables.actions.action-checkout %}
- uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 - uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with: with:
ruby-version: 2.6 ruby-version: '2.6'
- run: bundle install - run: bundle install
- name: Rubocop - name: Rubocop
run: rubocop run: rubocop
@@ -328,7 +328,7 @@ jobs:
- name: Set up Ruby 2.6 - name: Set up Ruby 2.6
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with: with:
ruby-version: 2.6 ruby-version: '2.6'
- run: bundle install - run: bundle install
- name: Publish to GPR - name: Publish to GPR

View File

@@ -390,7 +390,7 @@ jobs:
strategy: strategy:
matrix: matrix:
ruby: [2.5, 2.6.3] ruby: ['2.5', '2.6.3']
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -74,8 +74,8 @@ Below is an example comparing the syntax for each system.
```yaml ```yaml
matrix: matrix:
include: include:
- rvm: 2.5 - rvm: '2.5'
- rvm: 2.6.3 - rvm: '2.6.3'
``` ```
{% endraw %} {% endraw %}
@@ -89,7 +89,7 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
ruby: [2.5, 2.6.3] ruby: ['2.5', '2.6.3']
``` ```
{% endraw %} {% endraw %}

View File

@@ -9,10 +9,10 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- node-version: 14.x - node-version: '14.x'
site: "prod" site: "prod"
datacenter: "site-a" datacenter: "site-a"
- node-version: 16.x - node-version: '16.x'
site: "dev" site: "dev"
datacenter: "site-b" datacenter: "site-b"
steps: steps: