Skip to content

Commit 55c95c3

Browse files
authored
Merge pull request #610 from murdos/fix_workflows
Update workflow
2 parents 346e3b6 + b62a8cd commit 55c95c3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/checks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v4.1.0
10+
- uses: actions/setup-node@v4.4.0
11+
with:
12+
node-version: 20
1113
- name: 'Install dependencies'
1214
run: npm install
1315
- name: 'Run linter'
@@ -22,13 +24,13 @@ jobs:
2224
uses: actions/github-script@v7.0.1
2325
with:
2426
script: |
25-
github.pullRequests.createReview({
27+
github.rest.pullRequests.createReview({
2628
owner: context.payload.repository.owner.login,
2729
repo: context.payload.repository.name,
2830
pull_number: context.payload.pull_request.number,
2931
event: 'APPROVE'
3032
})
31-
github.pullRequests.merge({
33+
github.rest.pullRequests.merge({
3234
owner: context.payload.repository.owner.login,
3335
repo: context.payload.repository.name,
3436
pull_number: context.payload.pull_request.number

0 commit comments

Comments
 (0)