actions
actions copied to clipboard
Support Actions Artifacts v2 (i.e. upload-artifact v4)
Notable breaking change for the way we deal with bottles, that will require changes in multiple workflows and repositories:
Uploading to the same named Artifact multiple times.
Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once.
There's also some improvements that may make some things easier like:
Once uploaded, an Artifact ID is returned and Artifacts are immediately available in the UI and REST API. Previously, you would have to wait for the run to be completed before an ID was available or any APIs could be utilized.
Artifacts can now be downloaded and deleted from the UI before the entire workflow run finishes.
There was some difficulties we had with bottle caching and reruns that may have been solved here.
We can also probably deprecate Homebrew/actions/download-artifact
:
This library (and actions/download-artifact) now support downloading Artifacts from other repositories and runs if a GITHUB_TOKEN with sufficient actions:read permissions are provided.
Worth noting however when we make the change that when switching to actions/download-artifact@v4
:
Downloading artifacts that were created from
action/upload-artifact@v3
and below are not supported.
This means we should probably do the switch at a time when a bunch of PRs aren't pending approval as all of them will need rebasing.
There will likely also be a GitHub blog post about all this soon.
These partially overlap in information, but all three are worth reading:
- https://github.com/actions/toolkit/tree/main/packages/artifact#v2---whats-new
- https://github.com/actions/upload-artifact#v4---whats-new
- https://github.com/actions/download-artifact#v4---whats-new