Skip to content

Commit

Permalink
Update actions/github-script version to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
eddumelendez committed Oct 16, 2024
1 parent 593a7d9 commit a8eadce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
checks: write
steps:
- name: Create pending status
uses: actions/github-script@0.9.0
uses: actions/github-script@v7
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,
Expand All @@ -83,12 +83,12 @@ jobs:
- uses: ./.github/actions/setup-junit-report

- name: Create success status
uses: actions/github-script@0.9.0
uses: actions/github-script@v7
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,
Expand All @@ -98,12 +98,12 @@ jobs:
})
- name: Create failure status
uses: actions/github-script@0.9.0
uses: actions/github-script@v7
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,
Expand Down

0 comments on commit a8eadce

Please sign in to comment.