Merge pull request #19 from jmandel/patch-1

Remove redundant .trim()
This commit is contained in:
Matthias Pigulla
2020-02-08 13:21:01 +01:00
committed by GitHub

View File

@@ -7,7 +7,7 @@ try {
const home = process.env['HOME'];
const homeSsh = home + '/.ssh';
const privateKey = core.getInput('ssh-private-key').trim();
const privateKey = core.getInput('ssh-private-key');
if (!privateKey) {
core.setFailed("The ssh-private-key argument is empty. Maybe the secret has not been configured, or you are using a wrong secret name in your workflow file.");