Skip to content

Commit

Permalink
update deps & make use of node 20 instead of node 16 (#19)
Browse files Browse the repository at this point in the history
* update deps & make use of node 20 instead of node 16

* docs: update readme (use v2)

* docs: fix path to badge in the readme

* ci: update checkout action & give the workflows names
  • Loading branch information
kwarkjes authored Apr 8, 2024
1 parent ce9c440 commit 1f9716b
Show file tree
Hide file tree
Showing 12 changed files with 32,200 additions and 5,297 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test_linux_gmt8.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Test Linux

on:
push:
branches:
Expand All @@ -19,7 +21,7 @@ jobs:
name: Test GMT +8 on Ubuntu
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Timezone to +8 (With input)
uses: ./
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_macos_gmt8.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Test macOS

on:
push:
branches:
Expand All @@ -16,7 +18,7 @@ jobs:
name: Test GMT +8 on MacOS
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Timezone to +8 (With input)
uses: ./
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_run_action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Test all Platforms

on:
push:
branches:
Expand All @@ -19,7 +21,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Timezone to +0 (No input)
uses: ./
- name: Set Timezone to +0 (With input)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test_windows_gmt8.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Test Windows

on:
push:
branches:
Expand All @@ -16,7 +18,7 @@ jobs:
name: Test GMT +8 on Windows
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Timezone to +8 (With input)
uses: ./
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set Timezone Action

![Test Action](https://github.com/szenius/set-timezone/workflows/.github/workflows/action.yml/badge.svg)
![Test Action](https://github.com/szenius/set-timezone/workflows/.github/workflows/test_run_action.yml/badge.svg)

This action sets timezone in your runner's locale based on its OS.

Expand All @@ -15,7 +15,7 @@ This action sets timezone in your runner's locale based on its OS.
## Example usage

```yaml
uses: szenius/set-timezone@v1.2
uses: szenius/set-timezone@v2
with:
timezoneLinux: "Asia/Singapore"
timezoneMacos: "Asia/Singapore"
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ inputs:
required: false
default: "UTC"
runs:
using: "node16"
main: "dist/index.js"
using: "node20"
main: "dist/index.mjs"
Loading

0 comments on commit 1f9716b

Please sign in to comment.