From 2094d61b4a88a9d80832feaed6dd2978fb10c30c Mon Sep 17 00:00:00 2001 From: Rob van der Leek <5324924+robvanderleek@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:32:03 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=92=9A=20Always=20build=20dist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 8 ++++++++ dist/index.js | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3daeeba..c9639d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,5 +26,13 @@ jobs: - name: 'Install dependencies' run: yarn install + - name: 'Build dist' + run: yarn dist + + - name: 'Commit dist' + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'Distribution build' + - name: 'Run Code Limit action' uses: getcodelimit/codelimit-action@main diff --git a/dist/index.js b/dist/index.js index c8ac041..b132ea9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -49118,9 +49118,7 @@ function main() { let exitCode = 0; const clBinary = yield (0, codelimit_1.downloadCodeLimitBinary)(); console.log("Scanning codebase..."); - const excludes = (0, core_1.getMultilineInput)("excludes"); - const excludeOpts = excludes.flatMap((e) => ["--exclude", e]); - yield (0, exec_1.exec)(clBinary, [...excludeOpts, "scan", "."]); + yield (0, exec_1.exec)(clBinary, ["scan", "."]); const markdownReport = yield generateMarkdownReport(clBinary); const octokit = new action_1.Octokit({ auth: (0, core_1.getInput)("token") }); const doCheck = (0, core_1.getInput)("check") || true;