With @actions/artifact@2 the artifacts are becoming visible before the whole workflow completes and turned immutable:
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.
The contents of an Artifact are uploaded together into an immutable archive. They cannot be altered by subsequent jobs. Both of these factors help reduce the possibility of accidentally corrupting Artifact files. (Digest/integrity hash coming soon in the API!)
That means, if two jobs are running in parallel and will try to publish an artifact with the same name, the job will error. But since the hash is matching, the contents must be the same, so we can simply ignore it.
With
@actions/artifact@2
the artifacts are becoming visible before the whole workflow completes and turned immutable:That means, if two jobs are running in parallel and will try to publish an artifact with the same name, the job will error. But since the hash is matching, the contents must be the same, so we can simply ignore it.