Skip to content

Commit

Permalink
ci: πŸ’š Always build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Dec 8, 2024
1 parent b27bb72 commit 2094d61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2094d61

Please sign in to comment.