From 45aceb3cf15e1a38a341b1c788f2a6ddae7f5c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Montalv=C3=A3o=20Marques?= <9379664+gonmmarques@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:49:12 +0100 Subject: [PATCH] docs: quote language versions in YAML examples --- .../building-and-testing-nodejs.md | 4 ++-- .../building-and-testing-ruby.md | 4 ++-- .../migrating-from-circleci-to-github-actions.md | 2 +- .../migrating-from-travis-ci-to-github-actions.md | 6 +++--- data/reusables/actions/matrix-variable-example.md | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md b/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md index 6641e3ba85ad..5ff4fcf6759b 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-nodejs.md @@ -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. diff --git a/content/actions/automating-builds-and-tests/building-and-testing-ruby.md b/content/actions/automating-builds-and-tests/building-and-testing-ruby.md index 73b616879438..56a78b6168b3 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-ruby.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-ruby.md @@ -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 diff --git a/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-circleci-to-github-actions.md b/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-circleci-to-github-actions.md index 31e7dd509723..21bf42a1ca2c 100644 --- a/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-circleci-to-github-actions.md +++ b/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-circleci-to-github-actions.md @@ -390,7 +390,7 @@ jobs: strategy: matrix: - ruby: [2.5, 2.6.3] + ruby: ['2.5', '2.6.3'] runs-on: ubuntu-latest diff --git a/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md b/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md index ce3ad3947782..cf23bb75131f 100644 --- a/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md +++ b/content/actions/migrating-to-github-actions/manually-migrating-to-github-actions/migrating-from-travis-ci-to-github-actions.md @@ -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 %} diff --git a/data/reusables/actions/matrix-variable-example.md b/data/reusables/actions/matrix-variable-example.md index da53a80d7865..6f2ca9a535da 100644 --- a/data/reusables/actions/matrix-variable-example.md +++ b/data/reusables/actions/matrix-variable-example.md @@ -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: