You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Get Timestamp Action
v1.1
Get the time in the specified time zone
- name: Get Time
id: time
uses: nanzm/[email protected]
with:
timeZone: 8
format: 'YYYY-MM-DD-HH-mm-ss'
- name: Usage
env:
TIME: "${{ steps.time.outputs.time }}"
run: |
echo $TIME
Parameter | Required | Info |
---|---|---|
timeZone |
false |
time Zone Default: 0 |
format |
false |
timestamp format string Default: '' |
Parameter | Info |
---|---|
time |
time in the specified time zone |