@@ -7745,7 +7745,7 @@ const pathsToPush = core.getInput('pathsToPush');
7745
7745
const pushFilter = core . getInput ( 'pushFilter' ) ;
7746
7746
const cachixArgs = core . getInput ( 'cachixArgs' ) ;
7747
7747
const skipAddingSubstituter = core . getInput ( 'skipAddingSubstituter' ) ;
7748
- const useDaemon = ( core . getInput ( 'useDaemon' ) === 'true' ) ? true : false ;
7748
+ const useDaemon = core . getBooleanInput ( 'useDaemon' ) ;
7749
7749
const cachixBinInput = core . getInput ( 'cachixBin' ) ;
7750
7750
const installCommand = core . getInput ( 'installCommand' ) ||
7751
7751
"nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install" ;
@@ -7858,7 +7858,7 @@ async function setup() {
7858
7858
async function upload ( ) {
7859
7859
core . startGroup ( 'Cachix: push' ) ;
7860
7860
const cachixBin = core . getState ( 'cachixBin' ) ;
7861
- const supportsDaemon = core . getState ( 'supportsDaemon' ) ;
7861
+ const supportsDaemon = core . getState ( 'supportsDaemon' ) === 'true' ;
7862
7862
try {
7863
7863
if ( skipPush === 'true' ) {
7864
7864
core . info ( 'Pushing is disabled as skipPush is set to true' ) ;
@@ -7867,7 +7867,7 @@ async function upload() {
7867
7867
if ( useDaemon && supportsDaemon ) {
7868
7868
const daemonDir = process . env [ ENV_CACHIX_DAEMON_DIR ] ;
7869
7869
if ( ! daemonDir ) {
7870
- core . debug ( 'Cachix Daemon not started. Skipping push' ) ;
7870
+ core . error ( 'Cachix Daemon not started. Skipping push' ) ;
7871
7871
return ;
7872
7872
}
7873
7873
const daemonPid = parseInt ( await fs . readFile ( pidFilePath ( daemonDir ) , { encoding : 'utf8' } ) ) ;
0 commit comments