mirror of https://github.com/apache/superset.git
fix(ci): support action/script v5 breaking change (#26968)
This commit is contained in:
parent
e4eae9a70c
commit
c6d809a2a4
|
@ -67,7 +67,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github-token: ${{github.token}}
|
github-token: ${{github.token}}
|
||||||
script: |
|
script: |
|
||||||
github.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
issue_number: ${{ github.event.number }},
|
issue_number: ${{ github.event.number }},
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|
|
@ -76,7 +76,7 @@ jobs:
|
||||||
github-token: ${{github.token}}
|
github-token: ${{github.token}}
|
||||||
script: |
|
script: |
|
||||||
const errMsg = '@${{ github.event.comment.user.login }} Ephemeral environment creation is currently limited to committers.'
|
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 }},
|
issue_number: ${{ github.event.issue.number }},
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
@ -100,7 +100,7 @@ jobs:
|
||||||
pull_number: ${{ github.event.issue.number }},
|
pull_number: ${{ github.event.issue.number }},
|
||||||
}
|
}
|
||||||
core.info(`Getting PR #${request.pull_number} from ${request.owner}/${request.repo}`)
|
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;
|
return pr.data;
|
||||||
|
|
||||||
- name: Debug
|
- name: Debug
|
||||||
|
@ -194,7 +194,7 @@ jobs:
|
||||||
github-token: ${{github.token}}
|
github-token: ${{github.token}}
|
||||||
script: |
|
script: |
|
||||||
const errMsg = '@${{ github.event.comment.user.login }} Container image not yet published for this PR. Please try again when build is complete.'
|
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 }},
|
issue_number: ${{ github.event.issue.number }},
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|
Loading…
Reference in New Issue