Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 187e728

Browse files
authored
Merge pull request #1 from magic42/thomas/add-local-option
2 parents 162add4 + 9082573 commit 187e728

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
# Required.
2020
dep: deploy
2121

22+
# Option to skip over the SSH setup/configuration
23+
# Self hosted runners don't need the SSH configuration or the SSH agent to be started
24+
self-hosted: false
25+
2226
# Private key for connecting to remote hosts. To generate private key:
2327
# `ssh-keygen -o -t rsa -C 'action@deployer.org'`.
2428
# Optional.

action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ inputs:
88
required: true
99
description: The command.
1010

11+
self-hosted:
12+
required: false
13+
default: 'false'
14+
description: Whether the action is running on a self-hosted runner.
15+
1116
private-key:
1217
required: false
1318
default: ''

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ void async function main() {
1212
}()
1313

1414
async function ssh() {
15+
if (core.getBooleanInput('self-hosted')) {
16+
return;
17+
}
18+
1519
let sshHomeDir = `${process.env['HOME']}/.ssh`
1620

1721
if (!fs.existsSync(sshHomeDir)) {

0 commit comments

Comments
 (0)