mirror of
https://gitee.com/jiulinxiri/ssh-scp-deploy.git
synced 2025-09-10 02:15:25 +08:00
Changed entrypoiny.sh .
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- uses: marcodallasanta/ssh-scp-deploy@development
|
||||
- uses: marcodallasanta/ssh-scp-deploy@main
|
||||
with:
|
||||
local: "./"
|
||||
remote: "~/"
|
||||
|
@@ -3,7 +3,7 @@
|
||||
PASSWORD=${INPUT_PASSWORD};
|
||||
KEY=${INPUT_KEY};
|
||||
|
||||
if [ -z "$PRE_UPLOAD" and "$PASSWORD"]; then
|
||||
if [ -z "$PRE_UPLOAD" ] && [ "$PASSWORD" ]; then
|
||||
echo "🔑 Please provide at least a key or a password...";
|
||||
exit 0;
|
||||
fi
|
||||
|
Reference in New Issue
Block a user