You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by dp...@apache.org on 2024/02/01 16:40:46 UTC
(superset) branch master updated: fix(ci): support action/script v5 breaking change (#26968)
This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new c6d809a2a4 fix(ci): support action/script v5 breaking change (#26968)
c6d809a2a4 is described below
commit c6d809a2a42b2f69ccac94790e51a0d1ec180dac
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Thu Feb 1 16:40:40 2024 +0000
fix(ci): support action/script v5 breaking change (#26968)
---
.github/workflows/ephemeral-env-pr-close.yml | 2 +-
.github/workflows/ephemeral-env.yml | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/ephemeral-env-pr-close.yml b/.github/workflows/ephemeral-env-pr-close.yml
index 2c18773f05..e61559b052 100644
--- a/.github/workflows/ephemeral-env-pr-close.yml
+++ b/.github/workflows/ephemeral-env-pr-close.yml
@@ -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,
diff --git a/.github/workflows/ephemeral-env.yml b/.github/workflows/ephemeral-env.yml
index cc0437871b..5415b2ee79 100644
--- a/.github/workflows/ephemeral-env.yml
+++ b/.github/workflows/ephemeral-env.yml
@@ -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,