Skip to content

Commit ed73c41

Browse files
committed
<TBBAS-2595> Fix windows path separator
1 parent 5a87f5e commit ed73c41

File tree

1 file changed

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

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ runs:
1818
- name: Download openDAQ artifact
1919
shell: bash
2020
run: |
21-
gh run download ${{ inputs.opendaq-artifact-run-id }} --repo openDAQ/openDAQ --pattern ${{ inputs.opendaq-artifact-name }} --dir ${{ inputs.destination-dir }}
22-
echo ${{ inputs.destination-dir }}/${{ inputs.opendaq-artifact-name }}/
23-
ls -la ${{ inputs.destination-dir }}/${{ inputs.opendaq-artifact-name }}/
21+
DEST=$(echo "${{ inputs.destination-dir }}" | sed 's|\\|/|g')
22+
ARTIFACT_DIR="$DEST/${{ inputs.opendaq-artifact-name }}"
23+
24+
gh run download ${{ inputs.opendaq-artifact-run-id }} \
25+
--repo openDAQ/openDAQ \
26+
--pattern ${{ inputs.opendaq-artifact-name }} \
27+
--dir "$DEST"
28+
29+
echo "$ARTIFACT_DIR/"
30+
ls -la "$ARTIFACT_DIR/"

0 commit comments

Comments
 (0)