Update push.yml

This commit is contained in:
MattTheTekie 2023-12-30 14:37:35 -05:00 committed by GitHub
commit a784294017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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