Remove redundant .trim()

This commit is contained in:
Josh Mandel 2020-02-06 12:09:44 -06:00 committed by GitHub
parent 9d13200510
commit cf56a519af
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 home = process.env['HOME'];
const homeSsh = home + '/.ssh'; const homeSsh = home + '/.ssh';
const privateKey = core.getInput('ssh-private-key').trim(); const privateKey = core.getInput('ssh-private-key');
if (!privateKey) { 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."); 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.");