actions-hugo icon indicating copy to clipboard operation
actions-hugo copied to clipboard

proposal: Add support for timezone

Open fundor333 opened this issue 3 years ago • 1 comments

Checklist

  • [X] I am using the latest version of this action.
  • [X] I have read the latest README and followed the instructions.
  • [X] I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your proposal

Add an option for set the timezone for the build. If I locate the site in Paris I need to add more action to the workflow

Describe the solution you'd like

I like something like this

  - name: Set up Hugo
    uses: peaceiris/actions-hugo@v2
    with:
      hugo-version: "latest"
      extended: true
      timezone: Europe/Paris

Describe alternatives you've considered

I considered use other action for set the timezone but it is more run time for the action

Additional context

No additional context

fundor333 avatar Oct 23 '22 22:10 fundor333

Could you try TZ env?

      - name: Build
        env: 
          TZ: "Asia/Tokyo"
        run: hugo

peaceiris avatar Oct 24 '22 02:10 peaceiris