From 2e0500f2a50c7f883e15eb4d0fa7dc15d2c458c1 Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Thu, 7 Apr 2022 20:27:52 +0100 Subject: [PATCH] Handle strings as such (#100) * Handle strings as such * Let automation do its thing --- .github/workflows/action.yml | 1 - dist/index.js | 4 ++-- src/setup-beam.js | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 6b7a0cc..fb4f8c8 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -27,7 +27,6 @@ jobs: - run: npm run shellcheck - run: npm run yamllint - run: npm run jslint - - run: npm run licenses - name: Check if build left artifacts run: git diff --exit-code diff --git a/dist/index.js b/dist/index.js index 996440e..c4a1174 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6046,7 +6046,7 @@ async function maybeInstallElixir(elixirSpec, otpVersion) { const disableProblemMatchers = core.getInput('disable_problem_matchers', { required: false, }) - if (!disableProblemMatchers) { + if (disableProblemMatchers === 'false') { const matchersPath = __nccwpck_require__.ab + ".github" console.log( `##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`, @@ -6062,7 +6062,7 @@ async function maybeInstallElixir(elixirSpec, otpVersion) { } async function mix(shouldMix, what) { - if (shouldMix) { + if (shouldMix === 'true') { const cmd = 'mix' const args = [`local.${what}`, '--force'] console.log(`##[group]Running ${cmd} ${args}`) diff --git a/src/setup-beam.js b/src/setup-beam.js index acb42d2..41e71a0 100644 --- a/src/setup-beam.js +++ b/src/setup-beam.js @@ -73,7 +73,7 @@ async function maybeInstallElixir(elixirSpec, otpVersion) { const disableProblemMatchers = core.getInput('disable_problem_matchers', { required: false, }) - if (!disableProblemMatchers) { + if (disableProblemMatchers === 'false') { const matchersPath = path.join(__dirname, '..', '.github') console.log( `##[add-matcher]${path.join(matchersPath, 'elixir-matchers.json')}`, @@ -89,7 +89,7 @@ async function maybeInstallElixir(elixirSpec, otpVersion) { } async function mix(shouldMix, what) { - if (shouldMix) { + if (shouldMix === 'true') { const cmd = 'mix' const args = [`local.${what}`, '--force'] console.log(`##[group]Running ${cmd} ${args}`)