Skip to content

Commit

Permalink
Attempt with actual rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Sep 17, 2024
1 parent e507e2c commit 9f31b6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
additional-artifact-content-paths: |
tests/omp/*
some-file.txt
a2draft
something/that/isnt/there
a2draft
secrets: inherit

call-nothing:
uses: codegat-test-org/test/.github/workflows/test.yml@main
secrets: inherit
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ jobs:
private-key: ${{ secrets.KEY }}

- name: rsync
if: inputs.additional-artifact-content-paths != ''
run: |
while IFS= read -r content_path; do
if [[ -n "$content_path" ]]; then
echo "Going to rsync ${{ vars.ROOT_DIR }}/$content_path to ${{ env.TEST_OUTPUT_LOCAL_LOCATION }}"
rsync --recursive --verbose -e 'ssh -i ${{ steps.ssh.outputs.private-key-path }}' \
"${{ secrets.USER}}@${{ secrets.HOST_DATA }}:${{ vars.ROOT_DIR }}/$content_path" \
${{ env.TEST_OUTPUT_LOCAL_LOCATION }}
fi
done <<< "${{ inputs.additional-artifact-content-paths }}"
- run: tree ${{ env.TEST_OUTPUT_LOCAL_LOCATION }}

0 comments on commit 9f31b6a

Please sign in to comment.