Skip to content

Commit 131a252

Browse files
authored
Change to Push to SFTP
1 parent 7c266b6 commit 131a252

1 file changed

Lines changed: 39 additions & 15 deletions

File tree

.github/workflows/push-changes-to-blakedrumm-fileshare.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,56 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@master
2424
- name: Copy Operations Manager Powershell to Blake Drumm - File Repository
25-
uses: appleboy/scp-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
2628
with:
29+
# SFTP server
2730
host: ${{ secrets.HOST }}
31+
# SFTP server port
32+
port: ${{ secrets.PORT }}
33+
# SFTP username
2834
username: ${{ secrets.USERNAME }}
35+
# SFTP password
2936
password: ${{ secrets.PASSWORD }}
30-
port: ${{ secrets.PORT }}
31-
source: "/github/workspace/Powershell"
32-
target: "/var/www/blakedrumm_fileshare/Powershell/OperationsManager/Single Files"
33-
37+
# Source directory to upload from (will upload all files in this directory)
38+
sourceDir: "/github/workspace/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+
3442
- name: Copy AutomatedLab Powershell to Blake Drumm - File Repository
35-
uses: appleboy/scp-action@master
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
3646
with:
47+
# SFTP server
3748
host: ${{ secrets.HOST }}
49+
# SFTP server port
50+
port: ${{ secrets.PORT }}
51+
# SFTP username
3852
username: ${{ secrets.USERNAME }}
53+
# SFTP password
3954
password: ${{ secrets.PASSWORD }}
40-
port: ${{ secrets.PORT }}
41-
source: "/github/workspace/AutomatedLab"
42-
target: "/var/www/blakedrumm_fileshare/Powershell/AutomatedLab/OperationsManager"
43-
44-
55+
# Source directory to upload from (will upload all files in this directory)
56+
sourceDir: "/github/workspace/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+
4561
- name: Copy Operations Manager SQL Queries to Blake Drumm - File Repository
46-
uses: appleboy/scp-action@master
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
4765
with:
66+
# SFTP server
4867
host: ${{ secrets.HOST }}
68+
# SFTP server port
69+
port: ${{ secrets.PORT }}
70+
# SFTP username
4971
username: ${{ secrets.USERNAME }}
72+
# SFTP password
5073
password: ${{ secrets.PASSWORD }}
51-
port: ${{ secrets.PORT }}
52-
source: "/github/workspace/SQL Queries"
53-
target: "/var/www/blakedrumm_fileshare/SQL-Queries/OperationsManager"
74+
# Source directory to upload from (will upload all files in this directory)
75+
sourceDir: "/github/workspace/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

Comments
 (0)