Skip to content

Commit

Permalink
feat: adds exclude argument (#240)
Browse files Browse the repository at this point in the history
* Add exclude argument

* Update dist
  • Loading branch information
Methuselah96 authored Apr 16, 2024
1 parent 0ad36f5 commit 7910d81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function run(): Promise<void> {
const fromArg = core.getInput('from')
const toArg = core.getInput('to')
const solutionPathArg = core.getInput('solution-path')
const excludeArg = core.getInput('exclude')

if (fromArg) {
args.push('--from', fromArg)
Expand All @@ -52,6 +53,10 @@ async function run(): Promise<void> {
args.push('--repository-path', affectedTxtPath)
}

if (excludeArg) {
args.push('--exclude', excludeArg)
}

core.info(`Running dotnet affected`)

let affectedStdErr = ''
Expand Down

0 comments on commit 7910d81

Please sign in to comment.