slachiewicz opened a new pull request, #385: URL: https://github.com/apache/maven-gh-actions-shared/pull/385
Runs the final `mvn clean` step only on Windows, which is what its name says it is for. Both copies change: the one in the fail-fast job and the one in the matrix job. On Linux and macOS the step starts a second Maven and downloads `maven-clean-plugin`, which a build that never runs `clean` does not put into the cached repository. When Central answers with 429, the job fails after a green build: in [plexus-build-api run 47071898747](https://github.com/codehaus-plexus/plexus-build-api/actions/runs/47071898747), job `ubuntu-latest jdk-8-zulu 3.10.0`, `BUILD SUCCESS` is followed by `Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:3.5.0 from/to central ... HTTP Status: 429`. The Windows jobs still resolve the plugin from Central, because the repository cache is saved before this step and its key does not change while the POMs do not. That is left as it is; moving the cache save below the step would skip the save whenever the clean fails. Verified: [sandbox run](https://github.com/mojohaus/workflow-test/actions/runs/47080905891) calling this branch → the step is skipped in both Linux jobs, runs and passes on Windows. `actionlint` reports the same 8 shellcheck findings before and after, none on the changed lines. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
