fix(ci): support action/script v5 breaking change (#26968)

This commit is contained in:
Daniel Vaz Gaspar 2024-02-01 16:40:40 +00:00 committed by GitHub
parent e4eae9a70c
commit c6d809a2a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ jobs:
with:
github-token: ${{github.token}}
script: |
github.issues.createComment({
github.rest.issues.createComment({
issue_number: ${{ github.event.number }},
owner: context.repo.owner,
repo: context.repo.repo,

View File

@ -76,7 +76,7 @@ jobs:
github-token: ${{github.token}}
script: |
const errMsg = '@${{ github.event.comment.user.login }} Ephemeral environment creation is currently limited to committers.'
github.issues.createComment({
github.rest.issues.createComment({
issue_number: ${{ github.event.issue.number }},
owner: context.repo.owner,
repo: context.repo.repo,
@ -100,7 +100,7 @@ jobs:
pull_number: ${{ github.event.issue.number }},
}
core.info(`Getting PR #${request.pull_number} from ${request.owner}/${request.repo}`)
const pr = await github.pulls.get(request);
const pr = await github.rest.pulls.get(request);
return pr.data;
- name: Debug
@ -194,7 +194,7 @@ jobs:
github-token: ${{github.token}}
script: |
const errMsg = '@${{ github.event.comment.user.login }} Container image not yet published for this PR. Please try again when build is complete.'
github.issues.createComment({
github.rest.issues.createComment({
issue_number: ${{ github.event.issue.number }},
owner: context.repo.owner,
repo: context.repo.repo,