Better support for retrieving artifacts from CircleCI workflows with multiple jobs#90
Merged
larsoner merged 13 commits intoscientific-python:masterfrom Jan 16, 2026
Merged
Conversation
Removed header with credential info from step 1 fetch
Update index.js
…with a workflow that contains multiple jobs.
…t have been accessible outside.
Made changes to the action to support workflows with multiple jobs
Contributor
Author
|
I have tested these changes in the project that led me to find this issue. The changes resolve the issue with multiple jobs in a workflow, and the action still works as before for single-job workflows. |
larsoner
approved these changes
Jan 16, 2026
Collaborator
|
Looks great, thanks @DavidT3 ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is for issue #89
The action will now choose the first job (jobs.items[0]) if there is only one job in the CircleCI workflow.
If there are multiple CircleCI jobs in the workflow, it will iterate through their names (as retrieved from CircleCI's API) and check to see if that name appears in the circle CI job names passed to the action. The first matching job will be selected.
If no matching jobs are found, a debug message is triggered, and we revert back to choosing jobs.items[0].
The action should now better support CircleCI workflows that have multiple jobs, as prior to these changes it would only ever select the first job in the list to try to retrieve the specified artifact from.