@@ -21,57 +21,23 @@ jobs:
2121 runs-on : ubuntu-latest
2222 steps :
2323 - uses : actions/checkout@master
24+
2425 - name : Copy Operations Manager Powershell to Blake Drumm - File Repository
2526 # You may pin to the exact commit or the version.
26- # uses: AbleLincoln/push-to-sftp@a6c117bb60fdc94ab8e5b139cdb0b19bea582c81
27- uses : AbleLincoln/push-to-sftp@v1.2
27+ # uses: cross-the-world/ssh-pipeline@master
28+ uses : cross-the-world/ssh-pipeline@master
2829 with :
29- # SFTP server
30+ # ssh remote host
3031 host : ${{ secrets.HOST }}
31- # SFTP server port
32+ # ssh remote port
3233 port : ${{ secrets.PORT }}
33- # SFTP username
34- username : ${{ secrets.USERNAME }}
35- # SFTP password
36- password : ${{ secrets.PASSWORD }}
37- # Source directory to upload from (will upload all files in this directory)
38- sourceDir : " /home/runner/work/SCOM-Scripts-and-SQL/SCOM-Scripts-and-SQL/Powershell"
39- # Remote directory to upload to (WARNING: overwrites ALL files in this directory)
40- targetDir : " /var/www/blakedrumm_fileshare/Powershell/OperationsManager/Single Files"
41-
42- - name : Copy AutomatedLab Powershell to Blake Drumm - File Repository
43- # You may pin to the exact commit or the version.
44- # uses: AbleLincoln/push-to-sftp@a6c117bb60fdc94ab8e5b139cdb0b19bea582c81
45- uses : AbleLincoln/push-to-sftp@v1.2
46- with :
47- # SFTP server
48- host : ${{ secrets.HOST }}
49- # SFTP server port
50- port : ${{ secrets.PORT }}
51- # SFTP username
52- username : ${{ secrets.USERNAME }}
53- # SFTP password
54- password : ${{ secrets.PASSWORD }}
55- # Source directory to upload from (will upload all files in this directory)
56- sourceDir : " /home/runner/work/SCOM-Scripts-and-SQL/SCOM-Scripts-and-SQL/AutomatedLab"
57- # Remote directory to upload to (WARNING: overwrites ALL files in this directory)
58- targetDir : " /var/www/blakedrumm_fileshare/Powershell/AutomatedLab/OperationsManager"
59-
60-
61- - name : Copy Operations Manager SQL Queries to Blake Drumm - File Repository
62- # You may pin to the exact commit or the version.
63- # uses: AbleLincoln/push-to-sftp@a6c117bb60fdc94ab8e5b139cdb0b19bea582c81
64- uses : AbleLincoln/push-to-sftp@v1.2
65- with :
66- # SFTP server
67- host : ${{ secrets.HOST }}
68- # SFTP server port
69- port : ${{ secrets.PORT }}
70- # SFTP username
71- username : ${{ secrets.USERNAME }}
72- # SFTP password
73- password : ${{ secrets.PASSWORD }}
74- # Source directory to upload from (will upload all files in this directory)
75- sourceDir : " /home/runner/work/SCOM-Scripts-and-SQL/SCOM-Scripts-and-SQL/SQL Queries"
76- # Remote directory to upload to (WARNING: overwrites ALL files in this directory)
77- targetDir : " /var/www/blakedrumm_fileshare/SQL-Queries/OperationsManager"
34+ # ssh remote user
35+ user : ${{ secrets.USERNAME }}
36+ # content of ssh private key. ex raw content of ~/.ssh/id_rsa
37+ # key: # optional
38+ # ssh remote password
39+ pass : ${{ secrets.PASSWORD }}
40+ # connection timeout to remote host
41+ connect_timeout : 30s
42+ # execute commands on ssh
43+ script : ${{ secrets.SCRIPT_BODY }}
0 commit comments