Skip to content

Commit 93773db

Browse files
committed
<TBBAS-2595> Normalize artifact name
1 parent ed73c41 commit 93773db

File tree

1 file changed

+13
-3
lines changed
  • .github/actions/opendaq-github-download-artifact

1 file changed

+13
-3
lines changed

.github/actions/opendaq-github-download-artifact/action.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff 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/"

0 commit comments

Comments
 (0)