Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/input-providers/artifact-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ export class ArtifactProvider implements InputProvider {
async load(): Promise<ReportInput> {
const result: ReportInput = {}

const resp = await this.octokit.rest.actions.listWorkflowRunArtifacts({
const allArtifacts = await this.octokit.paginate(this.octokit.rest.actions.listWorkflowRunArtifacts, {
...github.context.repo,
run_id: this.runId
})

if (resp.data.artifacts.length === 0) {
if (allArtifacts.length === 0) {
core.warning(`No artifacts found in run ${this.runId}`)
return {}
}

const artifacts = resp.data.artifacts.filter(a => this.artifactNameMatch(a.name))
const artifacts = allArtifacts.filter(a => this.artifactNameMatch(a.name))
if (artifacts.length === 0) {
core.warning(`No artifact matches ${this.artifact}`)
return {}
Expand Down