@@ -13,18 +13,18 @@ jobs:
1313 github.event.workflow_run.conclusion == 'success'
1414 steps :
1515 - name : Download build
16- uses : actions/github-script@v3
16+ uses : actions/github-script@v7
1717 with :
1818 script : |
19- var artifacts = await github.actions.listWorkflowRunArtifacts({
19+ var artifacts = await github.rest. actions.listWorkflowRunArtifacts({
2020 owner: context.repo.owner,
2121 repo: context.repo.repo,
2222 run_id: ${{github.event.workflow_run.id }},
2323 });
2424 var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
2525 return artifact.name == "build"
2626 })[0];
27- var download = await github.actions.downloadArtifact({
27+ var download = await github.rest. actions.downloadArtifact({
2828 owner: context.repo.owner,
2929 repo: context.repo.repo,
3030 artifact_id: matchArtifact.id,
@@ -33,18 +33,18 @@ jobs:
3333 var fs = require('fs');
3434 fs.writeFileSync('${{github.workspace}}/build.zip', Buffer.from(download.data));
3535 - name : Download PR number
36- uses : actions/github-script@v3
36+ uses : actions/github-script@v7
3737 with :
3838 script : |
39- var artifacts = await github.actions.listWorkflowRunArtifacts({
39+ var artifacts = await github.rest. actions.listWorkflowRunArtifacts({
4040 owner: context.repo.owner,
4141 repo: context.repo.repo,
4242 run_id: ${{github.event.workflow_run.id }},
4343 });
4444 var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
4545 return artifact.name == "pr"
4646 })[0];
47- var download = await github.actions.downloadArtifact({
47+ var download = await github.rest. actions.downloadArtifact({
4848 owner: context.repo.owner,
4949 repo: context.repo.repo,
5050 artifact_id: matchArtifact.id,
5757 - run : unzip pr.zip
5858
5959 - name : Generate issue_number
60- uses : actions/github-script@v3
60+ uses : actions/github-script@v7
6161 id : issue_number
6262 with :
6363 github-token : ${{ secrets.GITHUB_TOKEN }}
6767 result-encoding : string
6868
6969 - name : Generate Surge URL
70- uses : actions/github-script@v3
70+ uses : actions/github-script@v7
7171 id : surge-url
7272 with :
7373 github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments