Skip to content

Commit

Permalink
feat: add exclude input
Browse files Browse the repository at this point in the history
  • Loading branch information
2coo committed Jan 23, 2024
1 parent 77c7af8 commit af66e58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 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: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ export async function run(workspace = '.'): Promise<void> {
const {GITHUB_WORKSPACE = workspace} = process.env
const base = core.getInput('base')
const head = core.getInput('head')
const exclude = core.getInput('exclude')

core.info(`using dir: ${GITHUB_WORKSPACE}`)

const apps = getNxAffected({
base,
head,
exclude: 'libs/**',
exclude: `libs/**,packages/**,${exclude}`,
workspace: GITHUB_WORKSPACE
})
core.setOutput('affectedApps', apps)
Expand All @@ -22,7 +23,7 @@ export async function run(workspace = '.'): Promise<void> {
const libs = getNxAffected({
base,
head,
exclude: 'apps/**',
exclude: `apps/**,${exclude}`,
workspace: GITHUB_WORKSPACE
})
core.setOutput('affectedLibs', libs)
Expand Down

0 comments on commit af66e58

Please sign in to comment.