No description
Find a file
2025-02-17 11:12:05 +00:00
.github/workflows Fix job name 2024-07-31 12:19:10 +02:00
.trunk Upgrade trunk 2025-02-17 11:12:00 +00:00
.actrc Add qualitycontrol. 2024-05-18 18:15:29 +02:00
.gitignore To the tune of "shots": Tests, Tests, Tests, Tests, Tests! 2024-05-18 19:59:50 +02:00
action.yml To the tune of "shots": Tests, Tests, Tests, Tests, Tests! 2024-05-18 19:59:50 +02:00
CODE_OF_CONDUCT.md initial commit. 2024-05-18 17:22:19 +02:00
LICENCE.md initial commit. 2024-05-18 17:22:19 +02:00
README.md Add docs 2024-05-18 20:09:57 +02:00

action-get-datetime

Simple action that names datetimes more useful in github actions.

Tests Status QC Status

Usage

Use it like so:

- uses: benzine-framework/action-get-datetime@v1
  id: get-datetime
- run: echo "The current datetime is ${{ steps.get-datetime.outputs.datetime }}"

or

- uses: benzine-framework/action-get-datetime@v1
- run: echo "The current datetime is ${{ env.DATETIME }}"

Outputs

Output Env Description
steps.date.outputs.datetime env.DATETIME The current datetime in the format YYYY-MM-DDTHH:MM:SSZ.
steps.date.outputs.date env.DATE The current date in the format YYYY-MM-DD.
steps.date.outputs.time env.TIME The current time in the format HH:MM:SS.
steps.date.outputs.atom env.ATOM The current datetime in ATOM format.
steps.date.outputs.atom_with_millis env.ATOM_WITH_MILLIS The current datetime in ATOM format with milliseconds.