actions / starter-workflows

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

Setup-Java: Update all workflows to use Setup-Java V4 #2381

Open jsoref opened 2 months ago

jsoref commented 2 months ago

Workflows should be using setup-java v4 (roughly https://github.com/actions/setup-java/releases/tag/v4.0.0, plus later updates). The only breaking changes were for v1->v2 (requiring a distribution -- I'm picking zulu because that's what v1 used, although most workflows use temurin -- and one uses microsoft). Some workflows in this repository are already using it. There's no reason to inconsistently use v1/v3/v4.

closes #2316 closes #2340

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: