{"repo":"josStorer/get-current-time","free":true,"listed":false,"github":"https://github.com/josStorer/get-current-time","clone":"git clone https://github.com/josStorer/get-current-time.git","description":"This action sets the current ISO8601 time to the time output and also provides readableTime, formattedTime, and many more digital outputs like year, day, second, etc. Useful for setting build times in subsequent steps, renaming your artifact, or keeping the same recorded time for the entire workflow.","language":"JavaScript","stars":40,"topics":["actions","github-actions"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Get Current Time Github Action This action sets the current ISO8601 time to the time output and also provides readableTime , formattedTime , and many more digital outputs like year , day , second , etc. Useful for setting build times in subsequent steps, renaming your artifact, or keeping the same recorded time for the entire workflow. You can view some typical input/output in the action.test.js file. Inputs format Time format to use - using MomentJS format syntax - optional utcOffset UTC offset to use - using MomentJS utcOffset syntax - optional timezone Timezone to use - check moment-timezone list - optional, if set, utcOffset will be ignored, e.g. \"America/Los Angeles\" Outputs time The ISO time this action was run, not affected by the parameter utcOffset e.g. '2020-01-01T00:30:15.000Z' ISOTime Same as time readableTime Human-friendly time - affected by the parameter utcOffset e.g. 'Wed Jan 01 2020 08:30:15 GMT+0800' formattedTime The time this action was run - formatted using format and utcOffset inputs year,month,day,hour,minute,second,millisecond Digital outputs, just as names Example usage Run locally First Build And you'll see the index.js is generated in the dist folder Test And you'll see the console output as following: PASS ./action.test.js &ensp;&ensp;action &ensp;&ensp;&ensp;&ensp; √ Should load (1 ms) &ensp;&ensp;&ensp;&ensp; √ Should correctly set outputs (1 ms) &ensp;&ensp;&ensp;&ensp; √ Should correctly set outputs with utcOffset (1 ms) &ensp;&ensp;&ensp;&ens","default_branch":null,"files":null,"tree":[],"storefront":"/r/josStorer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/josStorer/get-current-time/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}