Skip to content

[🪵] Update josStorer/get-current-time action to v2.1.2 #1637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2025

This PR contains the following updates:

Package Type Update Change
josStorer/get-current-time action minor v2 -> v2.1.2

Release Notes

josStorer/get-current-time (josStorer/get-current-time)

v2.1.2: Get current time v2.1.2

Compare Source

What's Changed

  • bump deps
  • update to node20
  • update action description

New Contributors

Full Changelog: josStorer/get-current-time@v2.1.1...v2.1.2


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

steps:
  - name: Get current time
    uses: josStorer/get-current-time@v2
    id: current-time
    with:
      format: YYYYMMDD-HH
      utcOffset: "+08:00"
  - name: Use current time
    env:
      TIME: "${{ steps.current-time.outputs.time }}"
      R_TIME: "${{ steps.current-time.outputs.readableTime }}"
      F_TIME: "${{ steps.current-time.outputs.formattedTime }}"
      YEAR: "${{ steps.current-time.outputs.year }}"
      DAY: "${{ steps.current-time.outputs.day }}"
    run: echo $TIME $R_TIME $F_TIME $YEAR $DAY

v2.1.1: Get current time v2.1.1

Compare Source

What's Changed

New Contributors

v2.1.0: Get current time v2.1.0

Compare Source

Features

  • add timezone input field (#​19)

Bug Fixes

  • when no utcOffset is passed, force it to be set to UTC+0

Tests

  • rewrite test code

Documents

New Contributors

v2.0.2: Get current time v2.0.2

Compare Source

Update packages by commit-bab18627 to fix a warning (#​6)

v2.0.1: Get current time v2.0.1

Compare Source

Update packages


Configuration

📅 Schedule: Branch creation - Every 3 hours, between 06:00 AM and 10:59 PM, Monday through Friday ( * 6-22/3 * * 1-5 ), Every 3 hours, between 12:00 PM and 11:59 PM, only on Sunday and Saturday ( * 12-23/3 * * 0,6 ) in timezone Europe/Amsterdam, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants