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
commit 4d1295c53b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.");