Get the time in the specified time zone
steps:
- name: Get Time
id: time
uses: nanzm/get-time-action@master
with:
timeZone: UTC+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: UTC |
format |
false |
timestamp format string Default: |
Parameter | Info |
---|---|
time |
time in the specified time zone |