Skip to content

Commit c6d809a

Browse files
authored
fix(ci): support action/script v5 breaking change (#26968)
1 parent e4eae9a commit c6d809a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ephemeral-env-pr-close.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
github-token: ${{github.token}}
6969
script: |
70-
github.issues.createComment({
70+
github.rest.issues.createComment({
7171
issue_number: ${{ github.event.number }},
7272
owner: context.repo.owner,
7373
repo: context.repo.repo,

.github/workflows/ephemeral-env.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
github-token: ${{github.token}}
7777
script: |
7878
const errMsg = '@${{ github.event.comment.user.login }} Ephemeral environment creation is currently limited to committers.'
79-
github.issues.createComment({
79+
github.rest.issues.createComment({
8080
issue_number: ${{ github.event.issue.number }},
8181
owner: context.repo.owner,
8282
repo: context.repo.repo,
@@ -100,7 +100,7 @@ jobs:
100100
pull_number: ${{ github.event.issue.number }},
101101
}
102102
core.info(`Getting PR #${request.pull_number} from ${request.owner}/${request.repo}`)
103-
const pr = await github.pulls.get(request);
103+
const pr = await github.rest.pulls.get(request);
104104
return pr.data;
105105
106106
- name: Debug
@@ -194,7 +194,7 @@ jobs:
194194
github-token: ${{github.token}}
195195
script: |
196196
const errMsg = '@${{ github.event.comment.user.login }} Container image not yet published for this PR. Please try again when build is complete.'
197-
github.issues.createComment({
197+
github.rest.issues.createComment({
198198
issue_number: ${{ github.event.issue.number }},
199199
owner: context.repo.owner,
200200
repo: context.repo.repo,

0 commit comments

Comments
 (0)