Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16163,6 +16163,9 @@ function setFailed(message) {
function error(message, properties = {}) {
issueCommand("error", toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
function warning(message, properties = {}) {
issueCommand("warning", toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
//#endregion
//#region node_modules/zx/build/deno.js
if (globalThis.Deno) {
Expand Down Expand Up @@ -36654,6 +36657,8 @@ async function ssh() {
p.stdin.write(privateKey);
p.stdin.end();
await p;
} else {
warning("No \"private-key\" input provided (or the referenced GitHub Actions secret is empty). Proceeding without adding an SSH key to ssh-agent.");
}
const knownHosts = getInput("known-hosts");
if (knownHosts !== "") {
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ async function ssh(): Promise<void> {
p.stdin.write(privateKey)
p.stdin.end()
await p
} else {
core.warning(
'No "private-key" input provided (or the referenced GitHub Actions secret is empty). Proceeding without adding an SSH key to ssh-agent.',
)
}

const knownHosts = core.getInput('known-hosts')
Expand Down