File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,15 +50,22 @@ jobs:
5050 export-args : ${{ steps.inputs.outputs.export-args }}
5151 runs-on : ubuntu-24.04
5252 steps :
53+ - name : Validate Input
54+ if : inputs.release-version != ''
55+ uses : ./.github/workflows/validate-release-version
56+ with :
57+ release-version : ${{ inputs.release-version }}
5358 - id : inputs
59+ env :
60+ REF : ${{ (inputs.release-version && format('llvmorg-{0}', inputs.release-version)) || github.sha }}
61+ INPUTS_RELEASE_VERSION : ${{ inputs.release-version }}
5462 run : |
55- ref=${{ (inputs.release-version && format('llvmorg-{0}', inputs.release-version)) || github.sha }}
56- if [ -n "${{ inputs.release-version }}" ]; then
57- export_args="-release ${{ inputs.release-version }} -final"
63+ if [ -n "$INPUTS_RELEASE_VERSION" ]; then
64+ export_args="-release $INPUTS_RELEASE_VERSION -final"
5865 else
5966 export_args="-git-ref ${{ github.sha }}"
6067 fi
61- echo "ref=$ref " >> $GITHUB_OUTPUT
68+ echo "ref=$REF " >> $GITHUB_OUTPUT
6269 echo "export-args=$export_args" >> $GITHUB_OUTPUT
6370
6471 release-sources :
8289 pip install --require-hashes -r ./llvm/utils/git/requirements.txt
8390
8491 - name : Create Tarballs
92+ env :
93+ EXPORT_ARGS : ${{ needs.inputs.outputs.export-args }}
8594 run : |
86- ./llvm/utils/release/export.sh ${{ needs.inputs.outputs.export-args }}
95+ ./llvm/utils/release/export.sh $EXPORT_ARGS
8796
8897 - name : Generate sha256 digest for sources
8998 id : digest
You can’t perform that action at this time.
0 commit comments