Merge pull request #39 from Mic92/quiet

Quiet cachix install
This commit is contained in:
Domen Kožar 2020-04-16 09:44:33 +02:00 committed by GitHub
commit 8580a77df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

2
dist/main/index.js vendored
View file

@ -986,7 +986,7 @@ function run() {
const authToken = core.getInput('authToken'); const authToken = core.getInput('authToken');
const cachixExecutable = "/nix/var/nix/profiles/per-user/runner/profile/bin/cachix"; const cachixExecutable = "/nix/var/nix/profiles/per-user/runner/profile/bin/cachix";
core.startGroup('Cachix: installing'); core.startGroup('Cachix: installing');
yield exec.exec('nix-env', ['-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']); yield exec.exec('nix-env', ['--quiet', '-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']);
core.endGroup(); core.endGroup();
// for private caches // for private caches
if (authToken !== "") { if (authToken !== "") {

5
shell.nix Normal file
View file

@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
nativeBuildInputs = [ yarn ];
}

View file

@ -17,7 +17,7 @@ async function run() {
const cachixExecutable = "/nix/var/nix/profiles/per-user/runner/profile/bin/cachix"; const cachixExecutable = "/nix/var/nix/profiles/per-user/runner/profile/bin/cachix";
core.startGroup('Cachix: installing') core.startGroup('Cachix: installing')
await exec.exec('nix-env', ['-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']); await exec.exec('nix-env', ['--quiet', '-iA', 'cachix', '-f', 'https://cachix.org/api/v1/install']);
core.endGroup() core.endGroup()
// for private caches // for private caches