Skip to content

Commit 6103889

Browse files
committed
Workflow: Fixed undefined bug with artifact id fetching
1 parent c5b0116 commit 6103889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
with:
5454
script: |
5555
const { owner, repo } = context.issue;
56-
const response = github.rest.actions.listArtifactsForRepo({
56+
const response = await github.rest.actions.listArtifactsForRepo({
5757
owner,
5858
repo,
5959
});
6060
6161
const artifactName = process.env.MAIN_REPORT_ARTIFACT_NAME;
62-
const filteredArtifacts = artifacts.data.artifacts.filter(a => a.name === artifactName);
62+
const filteredArtifacts = response.data.artifacts.filter(a => a.name === artifactName);
6363
if(filteredArtifacts.length === 0) {
6464
core.setFailed(`Error: Not able to find artifact with name ${artifactName}`);
6565
}

0 commit comments

Comments
 (0)