-
Notifications
You must be signed in to change notification settings - Fork 21
/
action.yml
31 lines (30 loc) · 1.32 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: "Get Current Time"
author: "Gerred Dillon <[email protected]>, Shahar Frank <[email protected]>, Joshua Chan <[email protected]>"
description: "Get the current time with `format`, `utcOffset` and `timezone`"
branding:
icon: clock
color: blue
inputs:
format:
description: "Time format to use - using [MomentJS format syntax](https://momentjs.com/docs/#/displaying/format/)"
required: false
utcOffset:
description: "UTC offset to use - using [MomentJS utcOffset syntax](https://momentjs.com/docs/#/manipulating/utc-offset/)"
required: false
timezone:
description: "Timezone to use - using [moment-timezone list](https://gist.github.com/diogocapela/12c6617fc87607d11fd62d2a4f42b02a) (overrides utcOffset)"
required: false
outputs:
time:
description: "The ISO time this action was run, **not** affected by the parameter `utcOffset` e.g. '2020-01-01T00:30:15.000Z'"
ISOTime:
description: "Same as `time`"
readableTime:
description: "Human-friendly time - affected by the parameter `utcOffset` e.g. 'Wed Jan 01 2020 08:30:15 GMT+0800'"
formattedTime:
description: "The time this action was run - formatted using `format` and `utcOffset` inputs"
year,month,day,hour,minute,second,millisecond:
description: "Digital outputs, just as names"
runs:
using: "node20"
main: "dist/index.js"