Skip to content

Succeed early if artifact name matches within a Workflow ID #20

@nafarlee

Description

@nafarlee

octokit.paginate(octokit.rest.actions.listWorkflowRunArtifacts, {
...context.repo,
run_id: id,
})

Previously, it was possible to, within the same workflow, upload multiple artifacts under the same name. However, this has changed with upload-artifact@v4. All versions before v4 will be deprecated by November 30th, 2024 at time of writing

With this, rather than paginating all artifacts for a single Workflow ID immediately, we can search page-by-page and abort early on success. This should reduce the number of GitHub API calls necessary

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions