Skip to content

Commit 05d22bf

Browse files
authored
Merge pull request #256 from crazy-max/fix-readme
Fix README
2 parents 9e6ae02 + 70b403b commit 05d22bf

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ___
4343
* [`{{sha}}`](#sha)
4444
* [`{{base_ref}}`](#base_ref)
4545
* [`{{is_default_branch}}`](#is_default_branch)
46-
* [`{{date '<format>' tz='<timezone>'}}`](#date-format)
46+
* [`{{date '<format>' tz='<timezone>'}}`](#date-format-tztimezone)
4747
* [Major version zero](#major-version-zero)
4848
* [JSON output object](#json-output-object)
4949
* [Overwrite labels](#overwrite-labels)
@@ -408,12 +408,14 @@ Will be used on [schedule event](https://docs.github.com/en/actions/using-workfl
408408
`pattern` is a specially crafted attribute to support [Handlebars' template](https://handlebarsjs.com/guide/)
409409
with the following expressions:
410410

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.
412413

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` |
417419

418420
Extended attributes and default values:
419421

@@ -780,13 +782,14 @@ one, otherwise `false`.
780782

781783
#### `{{date '<format>' tz='<timezone>'}}`
782784

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.
784787

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` |
790793

791794
### Major version zero
792795

0 commit comments

Comments
 (0)