@@ -40,20 +40,27 @@ inputs:
4040runs :
4141 using : ' composite'
4242 steps :
43+ - name : Add HELPER_PATH
44+ shell : bash
45+ run : echo "HELPER_PATH=${GITHUB_SHA}-fsharp-program" >> "${GITHUB_ENV}"
46+
4347 # TODO automate the update of the tag for download
4448 - name : Download the self-contained .NET program
4549 shell : bash
46- run : wget https://github.com/FsharpGHActions/git-tag-to-workflow-dispatch/releases/download/v0.0.008/fsharp-program.tar.gz
50+ env :
51+ PACKAGE_URL : ' https://github.com/FsharpGHActions/git-tag-to-workflow-dispatch/releases/download/v0.0.008/fsharp-program.tar.gz'
52+ run : |
53+ wget "${PACKAGE_URL}" -o "${HELPER_PATH}.tar.gz"
4754 - name : Uncompress the .NET program
4855 shell : bash
49- run : tar -xf fsharp-program .tar.gz out/
56+ run : tar -xf "${HELPER_PATH} .tar.gz" "${HELPER_PATH}/"
5057 - name : Run the .NET program
5158 shell : bash
5259 env :
5360 VALUES_TO_TAKE : ${{ inputs.values-to-take }}
5461 WORKFLOW_KEY : ${{ inputs.workflow-yaml-key }}
5562 GIT_TAGS : ${{ inputs.git-tags }}
56- run : ./out /Main "${GIT_TAGS}"
63+ run : ./${HELPER_PATH} /Main "${GIT_TAGS}"
5764
5865 - name : Merge the workflows
5966 uses : mikefarah/yq@master
7178 - name : Clean action
7279 shell : bash
7380 run : |
74- rm ./workflow.new.yml
75- rm ./fsharp-program .tar.gz
76- rm -rf out/
81+ rm " ./workflow.new.yml"
82+ rm "./${HELPER_PATH} .tar.gz"
83+ rm -rf "./${HELPER_PATH}/"
7784
7885 - name : Create pull request
7986 # if: ${{ inputs.pull-request }} # TODO
0 commit comments