Update push.yml
This commit is contained in:
parent
18b8a9f016
commit
3171e5b291
1 changed files with 14 additions and 11 deletions
25
.github/workflows/push.yml
vendored
25
.github/workflows/push.yml
vendored
|
|
@ -1,15 +1,18 @@
|
|||
name: Push over SCP
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 */3 * * *"
|
||||
workflow_dispatch:
|
||||
name: scp files
|
||||
on: [push]
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Downloading Files...
|
||||
run: |
|
||||
echo Downloading Files...
|
||||
exec 3>&1 &>/dev/null
|
||||
scp
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue