Skip to content

Commit 61921c6

Browse files
authored
Upgrade github-script action to v8 and update API calls for develop-update (#7)
2 parents fc85082 + 1a7bffc commit 61921c6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/develop-update.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ jobs:
5454
- name: "Check if existing PR exists"
5555
if: steps.check_diff.outputs.diff == 'true'
5656
id: check_pr
57-
uses: actions/github-script@v6
57+
uses: actions/github-script@v8
5858
with:
5959
script: |
60-
const { data: pullRequests } = await github.pulls.list({
60+
const { data: pullRequests } = await github.rest.pulls.list({
6161
owner: context.repo.owner,
6262
repo: context.repo.repo,
6363
head: 'main',
@@ -98,18 +98,18 @@ jobs:
9898
}
9999
- name: 'Ensure "ci" label is created'
100100
if: steps.check_pr.outputs.result == 'false'
101-
uses: actions/github-script@v6
101+
uses: actions/github-script@v8
102102
with:
103103
script: |
104104
try {
105-
await github.issues.getLabel({
105+
await github.rest.issues.getLabel({
106106
owner: context.repo.owner,
107107
repo: context.repo.repo,
108108
name: 'ci'
109109
});
110110
} catch (error) {
111111
if (error.status === 404) {
112-
await github.issues.createLabel({
112+
await github.rest.issues.createLabel({
113113
owner: context.repo.owner,
114114
repo: context.repo.repo,
115115
name: 'ci',

0 commit comments

Comments
 (0)