-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for viewing, managing, and accessing workflow artifacts #6532
Comments
Thanks for the detailed feature request! We will discuss which of these features we'd want in core.
Note the existing command |
Very good to know! In writing this, I wrestled with what would be beneficial beyond the artifact information within a workflow run. I hadn't seen any hard documentation on workflow artifact expiration or understand how customers are using or operationalizing artifacts for an entire repo. So with all of that being said, I won't be disappointed if this isn't a priority 🙇 |
We're for exposing the workflow artifacts a bit better, but in a relatively simple way. Since we already have the What do you think? |
The question that comes to mind is "how are people using artifacts beyond the workflow run scope?" As we can see, artifacts are repository-wide as well as workflow run specific. I don't have the full grasp on all the use cases around artifacts to demonstrate how repository-wide artifacts are used. My original assumption was having objects / concepts as the top level with verbs following. This would also allow artifacts to appear more predominantly in the usage around GitHub Actions commands without being buried: USAGE
gh <command> <subcommand> [flags]
CORE COMMANDS
auth: Authenticate gh and git with GitHub
browse: Open the repository in the browser
codespace: Connect to and manage codespaces
gist: Manage gists
issue: Manage issues
pr: Manage pull requests
release: Manage releases
repo: Manage repositories
ACTIONS COMMANDS
run: View details about workflow runs
workflow: View details about GitHub Actions workflows Between |
One thing that fell short of my original idea is making it easy to upload artifacts, too |
Describe the feature or problem you’d like to solve
I would like greater visibility and capabilities around GitHub Actions workflow artifacts than the current information in
gh run view #
:For any automation for leveraging these artifacts, it is possible for users to string together the necessary
gh api
calls to work with them based on the GitHub REST APIs for Artifacts:List artifacts for a repository
Get an artifact
Delete an artifact
Download an artifact
List workflow run artifacts
Proposed solution
While GitHub Action workflows can leverage actions/download-artifact, I believe this is limited in terms of how automation and developers interact with artifacts.
Some ideas of how this might be incorporated into GitHub CLI:
Viewing artifacts
$ gh artifact list NAME ID SIZE RUN ID CREATED EXPIRES EXPIRED upload-artifacts 416002865 #bytes 3348171091 #m #d false ...
Downloading artifact
$ gh artifact download ##
Will admit, I'm not sure a recommendation on providing a name for the downloaded artifact as well as any of the capabilities from https://github.com/actions/download-artifact for extracting files from the archive.
Deleting artifact
$ gh artifact delete ##
Viewing artifact
$ gh artifact view ##
Could have
--web
go to the workflow run associated with it.While I wish this suggestion was some grand solution to a major problem with enormous benefits, I will admit that this is mostly for providing views that are not readily available in the UI and cutting down on writing API calls manually for all of this.
As you can see in the screenshot above, there is no UI information around repository-wide artifacts like shown by API.
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.
The text was updated successfully, but these errors were encountered: