Skip to content

Commit

Permalink
setting github run timezone to local time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
olusegz07 committed Sep 5, 2024
1 parent 12ed1d3 commit 030ff3c
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ on:
- '*'

jobs:

testing-local-timezone:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set Time Zone to BST (Europe/London)
run: |
echo "Current UTC Time:"
date
echo "Switching Time Zone to Europe/London (BST)"
export TZ="Europe/London"
echo "Current Local Time (BST):"
date
env:
TZ: Europe/London

build:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -101,12 +119,3 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/
check-timezone:
runs-on: ubuntu-latest
steps:
- name: Check current time zone
run: |
echo 'Current Date and Time:'
date
echo 'Time Zone Info:'
timedatectl

0 comments on commit 030ff3c

Please sign in to comment.