We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b0116 commit 6103889Copy full SHA for 6103889
.github/workflows/build-push.yml
@@ -53,13 +53,13 @@ jobs:
53
with:
54
script: |
55
const { owner, repo } = context.issue;
56
- const response = github.rest.actions.listArtifactsForRepo({
+ const response = await github.rest.actions.listArtifactsForRepo({
57
owner,
58
repo,
59
});
60
61
const artifactName = process.env.MAIN_REPORT_ARTIFACT_NAME;
62
- const filteredArtifacts = artifacts.data.artifacts.filter(a => a.name === artifactName);
+ const filteredArtifacts = response.data.artifacts.filter(a => a.name === artifactName);
63
if(filteredArtifacts.length === 0) {
64
core.setFailed(`Error: Not able to find artifact with name ${artifactName}`);
65
}
0 commit comments