From bdfcb29ccc4644084d5b46f9d54c2498c9a98bde Mon Sep 17 00:00:00 2001 From: Anil Seervi <61609033+AnilSeervi@users.noreply.github.com> Date: Tue, 1 Feb 2022 11:33:05 +0530 Subject: [PATCH 1/4] Clarify usage of single quotes in string datatype for literals --- content/actions/learn-github-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/expressions.md b/content/actions/learn-github-actions/expressions.md index 536477355b8b..d2c9c842fd7f 100644 --- a/content/actions/learn-github-actions/expressions.md +++ b/content/actions/learn-github-actions/expressions.md @@ -55,7 +55,7 @@ As part of an expression, you can use `boolean`, `null`, `number`, or `string` d | `boolean` | `true` or `false` | | `null` | `null` | | `number` | Any number format supported by JSON. | -| `string` | You don't need to enclose strings in {% raw %}${{{% endraw %} and {% raw %}}}{% endraw %}. However, if you do, you must use single quotes around the string and escape literal single quotes with an additional single quote. | +| `string` | You don't need to enclose strings in {% raw %}${{{% endraw %} and {% raw %}}}{% endraw %}. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). | #### Example From bf10af3baf44fd12bf2818a7f40339b9df459f90 Mon Sep 17 00:00:00 2001 From: Anil Seervi <61609033+AnilSeervi@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:11:14 +0530 Subject: [PATCH 2/4] mention about not to use double quotes --- content/actions/learn-github-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/expressions.md b/content/actions/learn-github-actions/expressions.md index d2c9c842fd7f..688638827ab0 100644 --- a/content/actions/learn-github-actions/expressions.md +++ b/content/actions/learn-github-actions/expressions.md @@ -55,7 +55,7 @@ As part of an expression, you can use `boolean`, `null`, `number`, or `string` d | `boolean` | `true` or `false` | | `null` | `null` | | `number` | Any number format supported by JSON. | -| `string` | You don't need to enclose strings in {% raw %}${{{% endraw %} and {% raw %}}}{% endraw %}. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). | +| `string` | You don't need to enclose strings in `{% raw %}${{{% endraw %}` and `{% raw %}}}{% endraw %}`. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). Wrapping with double quotes (`"`) will throw an error. | #### Example From bb43bf98c33178548aae6bf85417365979394308 Mon Sep 17 00:00:00 2001 From: Anil Seervi <61609033+AnilSeervi@users.noreply.github.com> Date: Thu, 3 Feb 2022 22:42:55 +0530 Subject: [PATCH 3/4] fix formatting --- content/actions/learn-github-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/expressions.md b/content/actions/learn-github-actions/expressions.md index 688638827ab0..c300c79fd3d7 100644 --- a/content/actions/learn-github-actions/expressions.md +++ b/content/actions/learn-github-actions/expressions.md @@ -55,7 +55,7 @@ As part of an expression, you can use `boolean`, `null`, `number`, or `string` d | `boolean` | `true` or `false` | | `null` | `null` | | `number` | Any number format supported by JSON. | -| `string` | You don't need to enclose strings in `{% raw %}${{{% endraw %}` and `{% raw %}}}{% endraw %}`. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). Wrapping with double quotes (`"`) will throw an error. | +| `string` | You don't need to enclose strings in `{% raw %}${{{% endraw %} and {% raw %}}}{% endraw %}`. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). Wrapping with double quotes (`"`) will throw an error. | #### Example From af82becd71dbc41b07bb85a9a1dc0ed7d2d39ad0 Mon Sep 17 00:00:00 2001 From: Anil Seervi <61609033+AnilSeervi@users.noreply.github.com> Date: Fri, 4 Feb 2022 10:49:49 +0530 Subject: [PATCH 4/4] Revert formatting --- content/actions/learn-github-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/expressions.md b/content/actions/learn-github-actions/expressions.md index c300c79fd3d7..688638827ab0 100644 --- a/content/actions/learn-github-actions/expressions.md +++ b/content/actions/learn-github-actions/expressions.md @@ -55,7 +55,7 @@ As part of an expression, you can use `boolean`, `null`, `number`, or `string` d | `boolean` | `true` or `false` | | `null` | `null` | | `number` | Any number format supported by JSON. | -| `string` | You don't need to enclose strings in `{% raw %}${{{% endraw %} and {% raw %}}}{% endraw %}`. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). Wrapping with double quotes (`"`) will throw an error. | +| `string` | You don't need to enclose strings in `{% raw %}${{{% endraw %}` and `{% raw %}}}{% endraw %}`. However, if you do, you must use single quotes (`'`) around the string. To use a literal single quote, escape the literal single quote using an additional single quote (`''`). Wrapping with double quotes (`"`) will throw an error. | #### Example