Skip to content

Commit a8eadce

Browse files
committed
Update actions/github-script version to v7
1 parent 593a7d9 commit a8eadce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci-windows.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ jobs:
6161
checks: write
6262
steps:
6363
- name: Create pending status
64-
uses: actions/github-script@0.9.0
64+
uses: actions/github-script@v7
6565
with:
6666
github-token: ${{ secrets.GITHUB_TOKEN }}
6767
script: |
68-
github.repos.createStatus({
68+
github.rest.repos.createCommitStatus({
6969
owner: context.repo.owner,
7070
repo: context.repo.repo,
7171
sha: context.payload.client_payload.pull_request.head.sha,
@@ -83,12 +83,12 @@ jobs:
8383
- uses: ./.github/actions/setup-junit-report
8484

8585
- name: Create success status
86-
uses: actions/github-script@0.9.0
86+
uses: actions/github-script@v7
8787
if: success()
8888
with:
8989
github-token: ${{ secrets.GITHUB_TOKEN }}
9090
script: |
91-
github.repos.createStatus({
91+
github.rest.repos.createCommitStatus({
9292
owner: context.repo.owner,
9393
repo: context.repo.repo,
9494
sha: context.payload.client_payload.pull_request.head.sha,
@@ -98,12 +98,12 @@ jobs:
9898
})
9999
100100
- name: Create failure status
101-
uses: actions/github-script@0.9.0
101+
uses: actions/github-script@v7
102102
if: failure()
103103
with:
104104
github-token: ${{ secrets.GITHUB_TOKEN }}
105105
script: |
106-
github.repos.createStatus({
106+
github.rest.repos.createCommitStatus({
107107
owner: context.repo.owner,
108108
repo: context.repo.repo,
109109
sha: context.payload.client_payload.pull_request.head.sha,

0 commit comments

Comments
 (0)