Skip to content

Commit 16ced8d

Browse files
committed
[TASK] update to node 20
1 parent 4c06ad2 commit 16ced8d

File tree

6 files changed

+32353
-5256
lines changed

6 files changed

+32353
-5256
lines changed

Diff for: .github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- name: Set Node.js 16.x
15-
uses: actions/setup-node@v3
13+
- uses: actions/checkout@v4
14+
- name: Set Node.js 20.x
15+
uses: actions/setup-node@v4
1616
with:
17-
node-version: 16.x
17+
node-version: 20.x
1818
- name: Install
1919
run: |
2020
npm install
@@ -29,7 +29,7 @@ jobs:
2929
test: # make sure the action works on a clean machine without building
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
- uses: ./
3434
with:
3535
pattern: '\[(BUGFIX|DOCS|FEATURE|TASK)\] .+$'

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ More information about `pattern` and `flags` can be found in the
2424
`flags` is optional and defaults to `gm`.
2525

2626
`excludeDescription`, `excludeTitle` and `checkAllCommitMessages` are optional.
27-
Default behavior is to include the description and title and not check pull
27+
The default behavior is to include the description and title and not check pull
2828
request commit messages.
2929

3030
### Example Workflow
@@ -55,13 +55,13 @@ jobs:
5555
runs-on: ubuntu-latest
5656
steps:
5757
- name: Check Commit Type
58-
uses: gsactions/commit-message-checker@v2
58+
uses: gsactions/commit-message-checker@v3
5959
with:
6060
pattern: '\[[^]]+\] .+$'
6161
flags: 'gm'
6262
error: 'Your first line has to contain a commit type like "[BUGFIX]".'
6363
- name: Check Line Length
64-
uses: gsactions/commit-message-checker@v2
64+
uses: gsactions/commit-message-checker@v3
6565
with:
6666
pattern: '^[^#].{74}'
6767
error: 'The maximum line length of 74 characters is exceeded.'
@@ -70,7 +70,7 @@ jobs:
7070
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
7171
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true
7272
- name: Check for Resolves / Fixes
73-
uses: gsactions/commit-message-checker@v2
73+
uses: gsactions/commit-message-checker@v3
7474
with:
7575
pattern: '^.+(Resolves|Fixes): \#[0-9]+$'
7676
error: 'You need at least one "Resolves|Fixes: #<issue number>" line.'

Diff for: action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ inputs:
2727
accessToken:
2828
description: 'you must provide GITHUB_TOKEN to this input if checkAllCommitMessages is true'
2929
required: false
30-
default: 'false'
30+
default: 'false'
3131
runs:
32-
using: node16
32+
using: node20
3333
main: dist/index.js
3434
branding:
3535
icon: 'check'

0 commit comments

Comments
 (0)