actions / starter-workflows

Accelerating new GitHub Actions workflows
https://github.com/features/actions
Other
8.59k stars 5.07k forks source link

Artifacts: Update all workflows to use Artifacts V4 #2383

Open jsoref opened 2 months ago

jsoref commented 2 months ago

Workflows should be using upload-artifact & download-artifact v4 (roughly https://github.com/actions/upload-artifact/releases/tag/v4.0.0 and https://github.com/actions/download-artifact/releases/tag/v4.0.0, plus later updates). It has breaking changes but they mostly only affect matrixes and there's only one matrix in the repository that uses artifacts.

Pre-requisites


Please note that at this time we are only accepting new starter workflows for Code Scanning. Updates to existing starter workflows are fine.


Tasks

For all workflows, the workflow:

For CI workflows, the workflow:

For Code Scanning workflows, the workflow:

Some general notes: