push -> name

This commit is contained in:
Domen Kožar 2019-10-03 13:41:18 +02:00
commit 5e116bc9ac
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
5 changed files with 15 additions and 15 deletions

View file

@ -25,7 +25,7 @@ function run() {
// inputs
const file = core.getInput('file');
const attributes = core.getInput('attributes');
const push = core.getInput('push', { required: true });
const name = core.getInput('name', { required: true });
const signingKey = core.getInput('signingKey', { required: true });
const authToken = core.getInput('authToken');
core.startGroup('Installing Cachix');
@ -36,8 +36,8 @@ function run() {
if (authToken !== "") {
yield exec.exec('cachix', ['authtoken', authToken]);
}
core.startGroup(`Cachix: using ` + push);
yield exec.exec('cachix', ['use', push]);
core.startGroup(`Cachix: using ` + name);
yield exec.exec('cachix', ['use', name]);
core.endGroup();
core.exportVariable('CACHIX_SIGNING_KEY', signingKey);
// TODO: cachix use --watch-store
@ -53,8 +53,8 @@ function run() {
const args = strings_1.prependEach('-A', strings_1.nonEmptySplit(attributes, /\s/)).concat([file || "default.nix"]);
yield exec.exec('nix-build', args, options);
core.endGroup();
core.startGroup(`Cachix: pushing to ` + push);
yield exec.exec('cachix', ['push', push].concat(strings_1.nonEmptySplit(paths, /\s/).join(' ')));
core.startGroup(`Cachix: pushing to ` + name);
yield exec.exec('cachix', ['push', name].concat(strings_1.nonEmptySplit(paths, /\s/).join(' ')));
core.endGroup();
}
catch (error) {