Skip to content

Commit aeb8a16

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

File tree

1 file changed

+7
-4
lines changed
  • .github/actions/opendaq-github-download-artifact

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ runs:
1818
- name: Download openDAQ artifact
1919
shell: bash
2020
run: |
21-
DEST=$(echo "${{ inputs.destination-dir }}" | sed 's|\\|/|g')
22-
ARTIFACT_DIR="$DEST/${{ inputs.opendaq-artifact-name }}"
21+
DEST="${{ inputs.destination-dir }}"
22+
DEST=$(echo "$DEST" | sed 's|\\|/|g')
2323
24-
gh run download ${{ inputs.opendaq-artifact-run-id }} \
24+
ARTIFACT_NAME="${{ inputs.opendaq-artifact-name }}"
25+
ARTIFACT_DIR="$DEST/$ARTIFACT_NAME"
26+
27+
gh run download "${{ inputs.opendaq-artifact-run-id }}" \
2528
--repo openDAQ/openDAQ \
26-
--pattern ${{ inputs.opendaq-artifact-name }} \
29+
--pattern "$ARTIFACT_NAME" \
2730
--dir "$DEST"
2831
2932
echo "$ARTIFACT_DIR/"

0 commit comments

Comments
 (0)