Skip to content

Update josStorer/get-current-time action to v2.1.3#6901

Merged
jpelgrom merged 1 commit into
mainfrom
renovate/josstorer-get-current-time-2.x
May 25, 2026
Merged

Update josStorer/get-current-time action to v2.1.3#6901
jpelgrom merged 1 commit into
mainfrom
renovate/josstorer-get-current-time-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 25, 2026

This PR contains the following updates:

Package Type Update Change
josStorer/get-current-time action patch v2.1.2v2.1.3

Release Notes

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

v2.1.3: Get current time v2.1.3

Compare Source

What's Changed

  • bump deps
  • update to node24
  • migrate to esm

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


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

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

Rebasing: Whenever PR becomes conflicted, 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.

Copilot AI review requested due to automatic review settings May 25, 2026 17:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jpelgrom jpelgrom merged commit ac2e8cc into main May 25, 2026
26 checks passed
@jpelgrom jpelgrom deleted the renovate/josstorer-get-current-time-2.x branch May 25, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants