Skip to content

Commit fedd794

Browse files
authored
ci(docker-build-push): access version info from parent workflow (#3910)
Refs #3900
1 parent 8344488 commit fedd794

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)