peaceiris/actions-hugo

proposal: Add support for timezone

fundor333 opened this issue · 1 comments

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • 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

Could you try TZ env?

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