Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
GitHub Docs

Downloading workflow artifacts

You can download archived artifacts before they automatically expire.

Who can use this feature?

People who are signed into GitHub and have read access to a repository can download workflow artifacts.

Tool navigation

By default, GitHub stores build logs and artifacts for 90 days, and you can customize this retention period, depending on the type of repository. For more information, seeManaging GitHub Actions settings for a repository.

Read access to the repository is required to perform these steps.

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Actions.

    Screenshot of the tabs for the "github/docs" repository. The "Actions" tab is highlighted with an orange outline.

  3. In the left sidebar, click the workflow you want to see.

    Screenshot of the left sidebar of the "Actions" tab. A workflow, "CodeQL," is outlined in dark orange.

  4. From the list of workflow runs, click the name of the run to see the workflow run summary.

  5. In the "Artifacts" section, click the artifact you want to download.

    Screenshot of the "Artifacts" section of a workflow run. The name of an artifact generated by the run, "artifact," is outlined in orange.

Note

To learn more about GitHub CLI, seeAbout GitHub CLI.

GitHub CLI will download each artifact into separate directories based on the artifact name. If only a single artifact is specified, it will be extracted into the current directory.

To download all artifacts generated by a workflow run, use therun download subcommand. Replacerun-id with the ID of the run that you want to download artifacts from. If you don't specify arun-id, GitHub CLI returns an interactive menu for you to choose a recent run.

gh run download RUN_ID

To download a specific artifact from a run, use therun download subcommand. Replacerun-id with the ID of the run that you want to download artifacts from. Replaceartifact-name with the name of the artifact that you want to download.

gh run download RUN_ID -n ARTIFACT_NAME

You can specify more than one artifact.

gh run download RUN_ID> -n ARTIFACT_NAME-1 -n ARTIFACT_NAME-2

To download specific artifacts across all runs in a repository, use therun download subcommand.

gh run download -n ARTIFACT_NAME-1 ARTIFACT_NAME-2

[8]ページ先頭

©2009-2025 Movatter.jp