mirror of
https://gitee.com/jiulinxiri/ssh-scp-deploy.git
synced 2025-09-11 10:37:54 +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:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- uses: marcodallasanta/ssh-scp-deploy@development
|
- uses: marcodallasanta/ssh-scp-deploy@main
|
||||||
with:
|
with:
|
||||||
local: "./"
|
local: "./"
|
||||||
remote: "~/"
|
remote: "~/"
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
PASSWORD=${INPUT_PASSWORD};
|
PASSWORD=${INPUT_PASSWORD};
|
||||||
KEY=${INPUT_KEY};
|
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...";
|
echo "🔑 Please provide at least a key or a password...";
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user