Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 497 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 497 Bytes

Current Time Javascript Action

This action sets the current ISO8601 time to the time output. Useful for setting build times in subsequent steps, or keeping the same recorded time for the entire workflow.

Outputs

time

The UTC time when this step was run.

Example usage

steps:
- name: Get current time
  uses: varxnnn/[email protected]
  id: current-time
- name: Use current time
  env:
    TIME: "${{ steps.current-time.outputs.time }}"
  run: echo $TIME