From 497b41fb81a2addffa2e6435484220ac1fcd4852 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Thu, 31 Aug 2023 19:50:39 +0200 Subject: [PATCH] Update actions/github-script to 6.4.1 (#1561) --- .github/workflows/ci-windows.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index cc491a9280..c15829f3fb 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -13,11 +13,11 @@ jobs: timeout-minutes: 30 steps: - name: Create pending status - uses: actions/github-script@0.9.0 + uses: actions/github-script@6.4.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.repos.createStatus({ + github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, sha: context.payload.client_payload.pull_request.head.sha, @@ -55,12 +55,12 @@ jobs: gotestsum --format short-verbose --rerun-fails=5 --packages="./..." --junitfile TEST-unit.xml -- -timeout=30m - name: Create success status - uses: actions/github-script@0.9.0 + uses: actions/github-script@6.4.1 if: success() with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.repos.createStatus({ + github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, sha: context.payload.client_payload.pull_request.head.sha, @@ -70,12 +70,12 @@ jobs: }) - name: Create failure status - uses: actions/github-script@0.9.0 + uses: actions/github-script@6.4.1 if: failure() with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - github.repos.createStatus({ + github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, sha: context.payload.client_payload.pull_request.head.sha,