mirror of
https://github.com/actions/setup-java.git
synced 2026-07-16 13:52:59 +00:00
Fix template injection in e2e-versions.yml (alert #120)
This commit is contained in:
committed by
GitHub
parent
3682c106a4
commit
e339ec234c
@@ -756,14 +756,17 @@ jobs:
|
|||||||
Write-Host "$envName=$JavaVersionPath"
|
Write-Host "$envName=$JavaVersionPath"
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
- name: Verify Java 21 outputs are set
|
- name: Verify Java 21 outputs are set
|
||||||
|
env:
|
||||||
|
JAVA_21_PATH: ${{ steps.setup-java-21.outputs.path }}
|
||||||
|
JAVA_21_VERSION: ${{ steps.setup-java-21.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
echo "Java 21 path=${{ steps.setup-java-21.outputs.path }}"
|
echo "Java 21 path=$JAVA_21_PATH"
|
||||||
echo "Java 21 version=${{ steps.setup-java-21.outputs.version }}"
|
echo "Java 21 version=$JAVA_21_VERSION"
|
||||||
if [ -z "${{ steps.setup-java-21.outputs.path }}" ]; then
|
if [ -z "$JAVA_21_PATH" ]; then
|
||||||
echo "Java 21 path output should be set"
|
echo "Java 21 path output should be set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ -z "${{ steps.setup-java-21.outputs.version }}" ]; then
|
if [ -z "$JAVA_21_VERSION" ]; then
|
||||||
echo "Java 21 version output should be set"
|
echo "Java 21 version output should be set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user