Skip to content

Commit 29f1bbc

Browse files
raulpe7eiramhanberg
authored andcommitted
feat: set ssh input optional when non has migrations
1 parent 21a9e8b commit 29f1bbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inputs:
2323
default: true
2424
SSH_PRIVATE_KEY:
2525
description: 'Your ssh private key that is paired with a public key that is uploaded to Gigalixir'
26-
required: true
26+
required: ${MIGRATIONS}
2727

2828
runs:
2929
using: 'node12'

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function run() {
9393
const gigalixirUsername = core.getInput('GIGALIXIR_USERNAME', requiredInputOptions);
9494
const gigalixirPassword = core.getInput('GIGALIXIR_PASSWORD', requiredInputOptions);
9595
const migrations = core.getInput('MIGRATIONS', requiredInputOptions);
96-
const sshPrivateKey = core.getInput('SSH_PRIVATE_KEY', requiredInputOptions);
96+
const sshPrivateKey = core.getInput('SSH_PRIVATE_KEY', { required: migrations });
9797

9898
await core.group("Installing gigalixir", async () => {
9999
await exec.exec('pip3 install gigalixir')

0 commit comments

Comments
 (0)