From e924974ece12f984b61e25c677d1c5546c0cf8a2 Mon Sep 17 00:00:00 2001 From: Abdul Rabbani Date: Mon, 18 Apr 2022 17:07:18 -0400 Subject: [PATCH] Try raw scp command --- .github/workflows/on-pr.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/on-pr.yaml b/.github/workflows/on-pr.yaml index b1275d92..66485720 100644 --- a/.github/workflows/on-pr.yaml +++ b/.github/workflows/on-pr.yaml @@ -30,21 +30,19 @@ jobs: run: | echo $GITHUB_REPOSITORY > /tmp/git_repository echo $GITHUB_HEAD_REF > /tmp/git_head_ref - # echo ${{ env.GITHUB_REPOSITORY }} > /tmp/git_repository - # echo ${{ env.GITHUB_HEAD_REF }} > /tmp/git_head_ref - # echo ${{ env.BUILD_KEY }} | tr '\n' ''| sshpass -p ${{ env.BUILD_PASSWORD }} scp -i /dev/stdin /tmp/git_repository {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository - # echo ${{ env.BUILD_KEY }} | tr '\n' ''| sshpass -p ${{ env.BUILD_PASSWORD }} scp -i /dev/stdin /tmp/git_head_ref {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_head_ref - # echo ${{ env.BUILD_KEY }} | tr '\n' ''| sshpass -p ${{ env.BUILD_PASSWORD }} scp -i /dev/stdin ./github/workflows/run_unit_test.sh {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/run_unit_test.sh + echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin /tmp/git_repository {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository + echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin /tmp/git_head_ref {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_head_ref + echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin ./github/workflows/run_unit_test.sh {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/run_unit_test.sh - - name: SCP some files - uses: appleboy/scp-action@master - with: - host: ${{ env.BUILD_HOSTNAME }} - username: ${{ env.BUILD_USERNAME }} - key: ${{ env.BUILD_KEY }} - port: 22 - source: "/tmp/git_repository,/tmp/git_head_ref,./github/workflows/run_unit_test.sh" - target: "/tmp/" + #- name: SCP some files + # uses: appleboy/scp-action@master + # with: + # host: ${{ env.BUILD_HOSTNAME }} + # username: ${{ env.BUILD_USERNAME }} + # key: ${{ env.BUILD_KEY }} + # port: 22 + # source: "/tmp/git_repository,/tmp/git_head_ref,./github/workflows/run_unit_test.sh" + # target: "/tmp/" - name: Trigger Unit Test uses: appleboy/ssh-action@master