diff --git a/src/index.ts b/src/index.ts index b597dd1..3b3925d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,8 +5,7 @@ import installer from './installer'; // most @actions toolkit packages have async methods async function run() { - const dump = async () => { - // Show version + const showVersion = async () => { await exec.exec('hugo version'); }; @@ -18,7 +17,7 @@ async function run() { async function(latestVersion): Promise { console.log(`Hugo version: ${latestVersion} (${hugoVersion})`); await installer(latestVersion); - await dump(); + await showVersion(); }, function(error) { core.setFailed(error); @@ -27,7 +26,7 @@ async function run() { } else { console.log(`Hugo version: ${hugoVersion}`); await installer(hugoVersion); - await dump(); + await showVersion(); } } catch (error) { core.setFailed(error.message);