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
Accept an optional workflow run ID for which workflow run to download artifacts from. This will allow passing artifacts cross-workflow without falling back to using the REST API directly.
thrownewError('Unable to get GITHUB_RUN_ID env variable')
}
returnworkFlowRunId
}
DownloadOptions gains a new runId which can be used to specify the workflow run id to download artifacts from instead of using process.env['GITHUB_RUN_ID'].
downloadAllArtifacts gains a new options?: DownloadAllOptions parameter which just contains the runId option.
This is passed down, replacing uses of getWorkFlowRunId() with options.runId ?? getWorkFlowRunId().
The text was updated successfully, but these errors were encountered:
Describe the enhancement
Accept an optional workflow run ID for which workflow run to download artifacts from. This will allow passing artifacts cross-workflow without falling back to using the REST API directly.
Code Snippet
With an
actions/download-artifact
action:Additional information
Targets for the patch:
toolkit/packages/artifact/src/internal/download-http-client.ts
Lines 45 to 46 in 01e1ff7
toolkit/packages/artifact/src/internal/utils.ts
Lines 221 to 225 in 01e1ff7
toolkit/packages/artifact/src/internal/config-variables.ts
Lines 49 to 55 in 01e1ff7
DownloadOptions
gains a newrunId
which can be used to specify the workflow run id to download artifacts from instead of usingprocess.env['GITHUB_RUN_ID']
.downloadAllArtifacts
gains a newoptions?: DownloadAllOptions
parameter which just contains therunId
option.getWorkFlowRunId()
withoptions.runId ?? getWorkFlowRunId()
.The text was updated successfully, but these errors were encountered: