From a784294017536607518730a4e6a852cee02e8666 Mon Sep 17 00:00:00 2001 From: MattTheTekie <94870997+MattTheTekie@users.noreply.github.com> Date: Sat, 30 Dec 2023 14:37:35 -0500 Subject: [PATCH] Update push.yml --- .github/workflows/push.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9b2c0af..ea4f144 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,18 +1,15 @@ -name: scp files -on: [push] +name: Push over SCP +on: + schedule: + - cron: "0 */3 * * *" + workflow_dispatch: jobs: - build: - name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: copy file via ssh password - uses: appleboy/scp-action@v0.1.6 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - source: "tests/a.txt,tests/b.txt" - target: your_server_target_folder_path + - uses: actions/checkout@v2 + - name: Downloading Files... + run: | + echo Pushing Files... + exec 3>&1 &>/dev/null + sshpass -p 'PASS' scp -r -P 22 -J mattthetekie@IP ~/Templates/ mattthetekie@DEST_IP:/var/www/venith