@@ -20,26 +20,26 @@ jobs:
2020 with :
2121 ref : next
2222
23- - name : Download build artifact
24- uses : actions/github-script@v6
25- with :
26- script : |
27- const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
28- owner: context.repo.owner,
29- repo: context.repo.repo,
30- run_id: context.payload.workflow_run.id,
31- });
32- const matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
33- return artifact.name == "build"
34- })[0];
35- const download = await github.rest.actions.downloadArtifact({
36- owner: context.repo.owner,
37- repo: context.repo.repo,
38- artifact_id: matchArtifact.id,
39- archive_format: 'zip',
40- });
41- const fs = require('fs');
42- fs.writeFileSync('${{github.workspace}}/build.zip', Buffer.from(download.data));
23+ # - name: Download build artifact
24+ # uses: actions/github-script@v6
25+ # with:
26+ # script: |
27+ # const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
28+ # owner: context.repo.owner,
29+ # repo: context.repo.repo,
30+ # run_id: context.payload.workflow_run.id,
31+ # });
32+ # const matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
33+ # return artifact.name == "build"
34+ # })[0];
35+ # const download = await github.rest.actions.downloadArtifact({
36+ # owner: context.repo.owner,
37+ # repo: context.repo.repo,
38+ # artifact_id: matchArtifact.id,
39+ # archive_format: 'zip',
40+ # });
41+ # const fs = require('fs');
42+ # fs.writeFileSync('${{github.workspace}}/build.zip', Buffer.from(download.data));
4343 - run : |
4444 mkdir build
4545 unzip build.zip -d build
0 commit comments