slachiewicz commented on code in PR #338:
URL:
https://github.com/apache/maven-gh-actions-shared/pull/338#discussion_r4248499568
##########
.github/workflows/maven-verify.yml:
##########
@@ -324,15 +324,64 @@ jobs:
cache: 'maven'
show-download-progress: ${{ inputs.show-download-progress }}
+ - name: Check the runner's Maven
+ id: runner-maven
+ shell: bash
+ env:
+ MAVEN_VERSION: ${{ needs.setup-maven-version.outputs.version }}
+ run: |
+ runner_version="$(mvn --batch-mode --version 2>/dev/null | sed -n
's/^Apache Maven \([^ ]*\).*/\1/p' | head -n 1)"
Review Comment:
Applied in 64b35b7: `mvn --batch-mode --version -q | head -n 1 | tr -d '\r'`
gives the bare version on all three runners
([run](https://github.com/apache/maven-gh-actions-shared/actions/runs/38233201753)):
`3.10.0` on Ubuntu, so those jobs build with `/usr/share/apache-maven-3.10.0`
and download nothing, and `3.9.16` on Windows and macOS, which take the
cached-download path. The Windows value has no trailing CR; the `^M` in the
Windows log is the log's own line ending.
--
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]