注: GitHub 托管的运行器目前在 GitHub Enterprise Server 上不受支持。 您可以在 GitHub 公共路线图 上查看有关未来支持计划的更多信息。
By default, GitHub Enterprise Server stores build logs and artifacts for 90 days, and you can customize this retention period, depending on the type of repository. 更多信息请参阅“管理仓库的 GitHub Actions 设置”。
执行这些步骤需要对仓库的读取访问权限。
-
在 your GitHub Enterprise Server instance 上,导航到仓库的主页面。
-
Under your repository name, click Actions.

-
在左侧边栏中,单击您想要查看的工作流程。

-
从工作流程运行列表中,单击要查看的运行的名称。

-
在构件下,单击您想要下载的构件。

要了解有关 GitHub CLI 的更多信息,请参阅“关于 GitHub CLI”。
GitHub CLI 将根据构件名称将每个构件下载到单独的目录中。 如果只指定了单个构件, 它将被提取到当前目录。
要下载工作流程运行产生的所有构件,请使用 run download 子命令。 将 run-id 替换为您想要从中下载构件的运行的 ID。 如果您没有指定 run-id,GitHub CLI 将返回一个交互式菜单,供您选择最近的运行。
gh run download run-id
要从运行中下载特定的构件,请使用 run download 子命令。 将 run-id 替换为您想要从中下载构件的运行的 ID。 使用要下载的构件名称替换 artifact-name。
gh run download run-id -n artifact-name
您可以指定多个构件。
gh run download run-id -n artifact-name-1 -n artifact-name-2
要从仓库的所有运行中下载特定的构件,请使用 run download 子命令。
gh run download -n artifact-name-1 -n artifact-name-2

