Skip to content

Commit 4979c53

Browse files
committed
ci: Add SSH key env debug logging
1 parent 30cceaa commit 4979c53

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
mkdir -p "$SSH_PATH"
3939
touch "$SSH_PATH/known_hosts"
4040
41-
echo "$PRIVATE_KEY" > "$SSH_PATH/id_rsa"
41+
echo "--- Debug: env var length ---"
42+
echo "${#PRIVATE_KEY} characters"
43+
echo "--- Debug: line count ---"
44+
echo "$PRIVATE_KEY" | wc -l
4245
43-
echo "--- Debug: key file size ---"
46+
printf "%s\n" "$PRIVATE_KEY" > "$SSH_PATH/id_rsa"
47+
48+
echo "--- Debug: file size ---"
4449
wc -c "$SSH_PATH/id_rsa"
45-
echo "--- Debug: first/last lines ---"
46-
head -1 "$SSH_PATH/id_rsa"
47-
tail -1 "$SSH_PATH/id_rsa"
48-
echo "--- Debug: file type ---"
49-
file "$SSH_PATH/id_rsa"
5050
5151
chmod 700 "$SSH_PATH"
5252
ssh-keyscan github.com >> ~/.ssh/known_hosts

0 commit comments

Comments
 (0)