File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
.github/actions/opendaq-github-download-artifact Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,23 @@ runs:
1818 - name : Download openDAQ artifact
1919 shell : bash
2020 run : |
21+ # ====== Normalize destination path ======
2122 DEST=$(echo "${{ inputs.destination-dir }}" | sed 's|\\|/|g')
23+ DEST="\"$DEST\""
24+
25+ # ====== Artifact name ======
26+ ARTIFACT_NAME="${{ inputs.opendaq-artifact-name }}"
27+ ARTIFACT_NAME="\"$ARTIFACT_NAME\""
28+
29+ # ====== Full artifact directory ======
2230 ARTIFACT_DIR="$DEST/${{ inputs.opendaq-artifact-name }}"
2331
24- gh run download ${{ inputs.opendaq-artifact-run-id }} \
32+ # ====== Download artifact ======
33+ gh run download "${{ inputs.opendaq-artifact-run-id }}" \
2534 --repo openDAQ/openDAQ \
26- --pattern ${{ inputs.opendaq-artifact-name }} \
27- --dir " $DEST"
35+ --pattern $ARTIFACT_NAME \
36+ --dir $DEST
2837
38+ # ====== List downloaded files ======
2939 echo "$ARTIFACT_DIR/"
3040 ls -la "$ARTIFACT_DIR/"
You can’t perform that action at this time.
0 commit comments