@@ -26,6 +26,11 @@ outputs:
2626 description : ' Path to the downloaded file'
2727 value : ${{ steps.derive-output-file.outputs.file }}
2828runs :
29+ env :
30+ DISTRIBUTION : ${{ inputs.distribution }}
31+ HZ_VERSION : ${{ inputs.hz_version }}
32+ CLASSIFIER : ${{ inputs.classifier }}
33+ PACKAGING : ${{ inputs.packaging }}
2934 using : " composite"
3035 steps :
3136 - name : Get repository URL
@@ -35,34 +40,38 @@ runs:
3540 . ${GITHUB_ACTION_PATH}/../.github/scripts/logging.functions.sh
3641
3742 # Pick an appropriate key from "repo-vars-as-json"
38- case "${{ inputs.distribution } }" in
43+ case "${DISTRIBUTION }" in
3944 "hazelcast")
40- if [[ "${{ inputs.hz_version } }" == *"SNAPSHOT"* ]]; then
45+ if [[ "${HZ_VERSION }" == *"SNAPSHOT"* ]]; then
4146 repo_var_name=MAVEN_OSS_SNAPSHOT_REPO
4247 else
4348 repo_var_name=MAVEN_OSS_RELEASE_REPO
4449 fi
4550 ;;
4651 "hazelcast-enterprise")
47- if [[ "${{ inputs.hz_version } }" == *"SNAPSHOT"* ]]; then
52+ if [[ "${HZ_VERSION }" == *"SNAPSHOT"* ]]; then
4853 repo_var_name=MAVEN_EE_SNAPSHOT_REPO
4954 else
5055 repo_var_name=MAVEN_EE_RELEASE_REPO
5156 fi
5257 ;;
5358 *)
54- echoerr "Unsupported distribution type '${{ inputs.distribution } }'" ; return 1
59+ echoerr "Unsupported distribution type '${DISTRIBUTION }'" ; return 1
5560 ;;
5661 esac
5762
5863 # Lookup up the value of the selected key in "repo-vars-as-json"
59- echo "repo_url=$(jq --raw-output .${repo_var_name} <<< '${{ inputs.repo-vars-as-json }}')" >> ${GITHUB_OUTPUT}
64+ echo "repo_url=$(jq --raw-output .${repo_var_name} <<< '${REPO_VARS_AS_JSON}')" >> ${GITHUB_OUTPUT}
65+ env :
66+ REPO_VARS_AS_JSON : ${{ inputs.repo-vars-as-json }}
6067
6168 - name : Derive output file
6269 id : derive-output-file
6370 shell : bash
6471 run : |
65- echo "file=${{ inputs.output_file || format('distribution.{0}', inputs.packaging) }}" >> ${GITHUB_OUTPUT}
72+ echo "file=${FILE}" >> ${GITHUB_OUTPUT}
73+ env :
74+ FILE : ${{ inputs.output_file || format('distribution.{0}', inputs.packaging) }}
6675
6776 - name : Download via Maven
6877 shell : bash
@@ -71,10 +80,10 @@ runs:
7180 org.apache.maven.plugins:maven-dependency-plugin:2.10:get \
7281 -DremoteRepositories="${{ steps.get_repo_url.outputs.repo_url }}" \
7382 -DgroupId="com.hazelcast" \
74- -DartifactId="${{ inputs.distribution } }-distribution" \
75- -Dversion="${{ inputs.hz_version } }" \
76- -Dclassifier="${{ inputs.classifier } }" \
77- -Dpackaging="${{ inputs.packaging } }" \
83+ -DartifactId="${DISTRIBUTION }-distribution" \
84+ -Dversion="${HZ_VERSION }" \
85+ -Dclassifier="${CLASSIFIER }" \
86+ -Dpackaging="${PACKAGING }" \
7887 -Dtransitive=false \
7988 -Ddest="${{ steps.derive-output-file.outputs.file }}" \
8089 --batch-mode \
0 commit comments