Update repo_health.yml
This commit is contained in:
4
.github/workflows/repo_health.yml
vendored
4
.github/workflows/repo_health.yml
vendored
@@ -178,7 +178,7 @@ jobs:
|
|||||||
|
|
||||||
mkdir -p "$HOME/.ssh"
|
mkdir -p "$HOME/.ssh"
|
||||||
key_file="$HOME/.ssh/ci_sftp_key"
|
key_file="$HOME/.ssh/ci_sftp_key"
|
||||||
printf '%s\\n' "${FTP_KEY}" > "${key_file}"
|
printf '%s\n' "${FTP_KEY}" > "${key_file}"
|
||||||
chmod 600 "${key_file}"
|
chmod 600 "${key_file}"
|
||||||
|
|
||||||
port="${FTP_PORT:-22}"
|
port="${FTP_PORT:-22}"
|
||||||
@@ -189,7 +189,7 @@ jobs:
|
|||||||
sftp -oBatchMode=yes -oStrictHostKeyChecking=no -P "${port}" -i "${key_file}" "${FTP_USER}@${FTP_HOST}" <<'EOF'
|
sftp -oBatchMode=yes -oStrictHostKeyChecking=no -P "${port}" -i "${key_file}" "${FTP_USER}@${FTP_HOST}" <<'EOF'
|
||||||
pwd
|
pwd
|
||||||
bye
|
bye
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "SFTP connectivity check passed." >> "${GITHUB_STEP_SUMMARY}"
|
echo "SFTP connectivity check passed." >> "${GITHUB_STEP_SUMMARY}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user