@@ -21,11 +21,57 @@ jobs:
2121 runs-on : ubuntu-latest
2222 steps :
2323 - uses : actions/checkout@master
24-
2524 - name : Copy Operations Manager Powershell to Blake Drumm - File Repository
26- uses : fifsky/ssh-action@master
25+ # 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
28+ with :
29+ # SFTP server
30+ host : ${{ secrets.HOST }}
31+ # SFTP server port
32+ 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
2765 with :
28- command : ${{ secrets.SCRIPT_BODY }}
66+ # SFTP server
2967 host : ${{ secrets.HOST }}
30- user : ${{ secrets.USERNAME }}
31- pass : ${{ secrets.PASSWORD }}
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"
0 commit comments