Skip to content

Commit ddda164

Browse files
authored
chore: readme.md update github actions versions (#808)
1 parent 0184f5a commit ddda164

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Lints Pull Request commits with [commitlint](https://commitlint.js.org/).
44

55
## Usage
66

7-
Create a github workflow in the `.github` folder, e.g. `.github/workflows/commitlint.yml`:
7+
Create a GitHub workflow in the `.github` folder, e.g. `.github/workflows/commitlint.yml`:
88

99
```yaml
1010
name: Lint Commit Messages
@@ -18,11 +18,11 @@ jobs:
1818
commitlint:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- uses: wagoid/commitlint-github-action@v6
2323
```
2424
25-
Alternatively, you can run on other event types such as `on: [push]`. In that case the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow.
25+
Alternatively, you can run on other event types such as `on: [push]`. In that case, the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow.
2626

2727
### Using with GitHub Merge Queues
2828

@@ -44,7 +44,7 @@ jobs:
4444
commitlint:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
with:
4949
ref: ${{ github.sha }}
5050
@@ -68,7 +68,7 @@ jobs:
6868
runs-on: ubuntu-latest
6969
steps:
7070
- name: Checkout Repository
71-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7272
```
7373

7474
This workflow can also be a meaningful one that checks out the commits in your PR and runs other checks, but it must have a job named **commitlint**.
@@ -204,10 +204,10 @@ jobs:
204204
commitlint:
205205
runs-on: ubuntu-latest
206206
steps:
207-
- uses: actions/checkout@v3
208-
- uses: actions/setup-node@v2
207+
- uses: actions/checkout@v4
208+
- uses: actions/setup-node@v4
209209
with:
210-
node-version: '14'
210+
node-version: '22'
211211
- run: npm install
212212
# Run the commitlint action, considering its own dependencies and yours as well 🚀
213213
# `github.workspace` is the path to your repository.

0 commit comments

Comments
 (0)