Skip to content

Commit c8ddd55

Browse files
committed
chore: fix ci
1 parent 40dbb09 commit c8ddd55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/github-script@v7
2121
with:
2222
script: |
23-
const permission = await github.repos.getCollaboratorPermissionLevel({
23+
const permission = await github.rest.repos.getCollaboratorPermissionLevel({
2424
owner: context.repo.owner,
2525
repo: context.repo.repo,
2626
username: context.actor
@@ -32,7 +32,7 @@ jobs:
3232
if (currentBranch !== `release/${{ github.event.inputs.version }}`) {
3333
core.setFailed(`Current branch ${currentBranch} does not match release/${{ github.event.inputs.version }}`);
3434
}
35-
const pullRequests = await github.pulls.list({
35+
const pullRequests = await github.rest.pulls.list({
3636
owner: context.repo.owner,
3737
repo: context.repo.repo,
3838
state: 'open',

0 commit comments

Comments
 (0)