From 3f584411b41dd75c64e1c16bb48fdca5850e5100 Mon Sep 17 00:00:00 2001 From: Kaj Kowalski Date: Mon, 14 Sep 2026 20:06:48 +0200 Subject: [PATCH 1/2] docs: clarify Actions number literal syntax --- content/actions/reference/workflows-and-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/workflows-and-actions/expressions.md b/content/actions/reference/workflows-and-actions/expressions.md index 69a06bba99b6..c4510357d16b 100644 --- a/content/actions/reference/workflows-and-actions/expressions.md +++ b/content/actions/reference/workflows-and-actions/expressions.md @@ -24,7 +24,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. | +| `number` | Decimal integer and floating-point literals, including exponent notation, and hexadecimal literals such as `0xff`. | | `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. | Note that in conditionals, falsy values (`false`, `0`, `-0`, `""`, `''`, `null`) are coerced to `false` and truthy (`true` and other non-falsy values) are coerced to `true`. From 4d373e77e4d18fa6ecf1066a43b04db7c50f4a93 Mon Sep 17 00:00:00 2001 From: Kaj Kowalski Date: Tue, 15 Sep 2026 21:38:34 +0200 Subject: [PATCH 2/2] docs: include octal Actions number literals --- content/actions/reference/workflows-and-actions/expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/reference/workflows-and-actions/expressions.md b/content/actions/reference/workflows-and-actions/expressions.md index c4510357d16b..04cd7e8df523 100644 --- a/content/actions/reference/workflows-and-actions/expressions.md +++ b/content/actions/reference/workflows-and-actions/expressions.md @@ -24,7 +24,7 @@ As part of an expression, you can use `boolean`, `null`, `number`, or `string` d |-----------|---------------| | `boolean` | `true` or `false` | | `null` | `null` | -| `number` | Decimal integer and floating-point literals, including exponent notation, and hexadecimal literals such as `0xff`. | +| `number` | Decimal integer and floating-point literals, including exponent notation, hexadecimal literals such as `0xff`, and octal literals such as `0o17`. Hexadecimal and octal prefixes must be lowercase. | | `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. | Note that in conditionals, falsy values (`false`, `0`, `-0`, `""`, `''`, `null`) are coerced to `false` and truthy (`true` and other non-falsy values) are coerced to `true`.