You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if a workflow produces more than 30 artifacts, then using the search_artifacts option breaks this action. The reason for this is that the call at https://github.com/dawidd6/action-download-artifact/blob/master/main.js#L125 does not handle pagination, and the default page size is 30 (see here). Therefore, if there are e.g. 31 artifacts and you are searching for the last one, the artifact isn't retrieved by the listWorkflowRunArtifacts call and the artifact therefore isn't found. The solution to this is to add pagination handling to this call.
The text was updated successfully, but these errors were encountered:
PR to try and fix this: #205, though worth noting that I'm not really familiar with any of this code - I just thought there might be a quick fix for this based on some of the other code I could see.
Currently, if a workflow produces more than 30 artifacts, then using the
search_artifacts
option breaks this action. The reason for this is that the call at https://github.com/dawidd6/action-download-artifact/blob/master/main.js#L125 does not handle pagination, and the default page size is 30 (see here). Therefore, if there are e.g. 31 artifacts and you are searching for the last one, the artifact isn't retrieved by thelistWorkflowRunArtifacts
call and the artifact therefore isn't found. The solution to this is to add pagination handling to this call.The text was updated successfully, but these errors were encountered: