better error message

This commit is contained in:
Domen Kožar 2021-04-02 17:26:53 +02:00
commit 2689c27f57
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
2 changed files with 2 additions and 2 deletions

2
dist/main/index.js vendored
View file

@ -1090,7 +1090,7 @@ function upload() {
yield exec.exec(`${__dirname}/push-paths.sh`, [cachixExecutable, name, pushFilter]); yield exec.exec(`${__dirname}/push-paths.sh`, [cachixExecutable, name, pushFilter]);
} }
else { else {
core.info('Pushing is disabled as signing key nor auth token are set.'); core.info('Pushing is disabled as signingKey nor authToken are set (or are emtpy?) in your YAML file.');
} }
} }
catch (error) { catch (error) {

View file

@ -59,7 +59,7 @@ async function upload() {
} else if (signingKey !== "" || authToken !== "") { } else if (signingKey !== "" || authToken !== "") {
await exec.exec(`${__dirname}/push-paths.sh`, [cachixExecutable, name, pushFilter]); await exec.exec(`${__dirname}/push-paths.sh`, [cachixExecutable, name, pushFilter]);
} else { } else {
core.info('Pushing is disabled as signing key nor auth token are set.'); core.info('Pushing is disabled as signingKey nor authToken are set (or are emtpy?) in your YAML file.');
} }
} catch (error) { } catch (error) {
core.setFailed(`Action failed with error: ${error}`); core.setFailed(`Action failed with error: ${error}`);