File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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',
You can’t perform that action at this time.
0 commit comments