mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
Add working-directory input (#21)
This commit is contained in:
parent
14dd70c742
commit
caef9bef1f
5 changed files with 29 additions and 0 deletions
|
@ -8,6 +8,11 @@ import * as git from './git'
|
|||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
const workingDirectory = core.getInput('working-directory', {required: false})
|
||||
if (workingDirectory) {
|
||||
process.chdir(workingDirectory)
|
||||
}
|
||||
|
||||
const token = core.getInput('token', {required: false})
|
||||
const filtersInput = core.getInput('filters', {required: true})
|
||||
const filtersYaml = isPathInput(filtersInput) ? getConfigFileContent(filtersInput) : filtersInput
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue