From 925b22869a4117869c485648592f90ac8997ca22 Mon Sep 17 00:00:00 2001 From: Abdul Rabbani Date: Mon, 18 Apr 2022 17:58:05 -0400 Subject: [PATCH] Updat path and perms --- .github/workflows/on-pr.yaml | 8 +++----- .github/workflows/run_unit_test.sh | 0 2 files changed, 3 insertions(+), 5 deletions(-) mode change 100644 => 100755 .github/workflows/run_unit_test.sh diff --git a/.github/workflows/on-pr.yaml b/.github/workflows/on-pr.yaml index a5e9e94d..c2338495 100644 --- a/.github/workflows/on-pr.yaml +++ b/.github/workflows/on-pr.yaml @@ -35,9 +35,7 @@ jobs: chmod 400 /tmp/key cat /tmp/git_repository cat /tmp/git_head_ref - # 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: Raw SCP run: | scp -o 'StrictHostKeyChecking no' -i /tmp/key /tmp/git_repository ${{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository @@ -49,9 +47,9 @@ jobs: with: host: ${{ env.BUILD_HOSTNAME }} username: ${{ env.BUILD_USERNAME }} - key_path: ${{ env.BUILD_KEY }} + key_path: /tmp/key port: 22 - script: /tmp/key + script: /tmp/run_unit_test.sh - name: Get the logs and cat them run: | diff --git a/.github/workflows/run_unit_test.sh b/.github/workflows/run_unit_test.sh old mode 100644 new mode 100755