|
43 | 43 | * [`{{sha}}`](#sha) |
44 | 44 | * [`{{base_ref}}`](#base_ref) |
45 | 45 | * [`{{is_default_branch}}`](#is_default_branch) |
46 | | - * [`{{date '<format>' tz='<timezone>'}}`](#date-format) |
| 46 | + * [`{{date '<format>' tz='<timezone>'}}`](#date-format-tztimezone) |
47 | 47 | * [Major version zero](#major-version-zero) |
48 | 48 | * [JSON output object](#json-output-object) |
49 | 49 | * [Overwrite labels](#overwrite-labels) |
@@ -408,12 +408,14 @@ Will be used on [schedule event](https://docs.github.com/en/actions/using-workfl |
408 | 408 | `pattern` is a specially crafted attribute to support [Handlebars' template](https://handlebarsjs.com/guide/) |
409 | 409 | with the following expressions: |
410 | 410 |
|
411 | | -* `date 'format' tz='Timezone'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/). Default `tz` is UTC. |
| 411 | +* `date 'format' tz='Timezone'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/). |
| 412 | + Default `tz` is UTC. |
412 | 413 |
|
413 | | -| Pattern | Output | |
414 | | -|--------------------------|----------------------| |
415 | | -| `nightly` | `nightly` | |
416 | | -| `{{date 'YYYYMMDD'}}` | `20210326` | |
| 414 | +| Pattern | Output | |
| 415 | +|----------------------------------------------|-------------------| |
| 416 | +| `nightly` | `nightly` | |
| 417 | +| `{{date 'YYYYMMDD'}}` | `20200110` | |
| 418 | +| `{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` | |
417 | 419 |
|
418 | 420 | Extended attributes and default values: |
419 | 421 |
|
@@ -780,13 +782,14 @@ one, otherwise `false`. |
780 | 782 |
|
781 | 783 | #### `{{date '<format>' tz='<timezone>'}}` |
782 | 784 |
|
783 | | -Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/). Default `tz` is UTC. |
| 785 | +Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/). |
| 786 | +Default `tz` is UTC. |
784 | 787 |
|
785 | | -| Expression | Output example | |
786 | | -|------------------------------------------------------------|--------------------------------------------| |
787 | | -| `{{date 'YYYYMMDD'}}` | `20200110` | |
788 | | -| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` | |
789 | | -| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a' tz='Asia/Tokyo'}}` | `Saturday, January 11th 2020, 12:25:50 am` | |
| 788 | +| Expression | Output example | |
| 789 | +|----------------------------------------------|-----------------------------------------| |
| 790 | +| `{{date 'YYYYMMDD'}}` | `20200110` | |
| 791 | +| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` | |
| 792 | +| `{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` | |
790 | 793 |
|
791 | 794 | ### Major version zero |
792 | 795 |
|
|
0 commit comments