mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-14 20:37:10 +00:00
Add working-directory input (#21)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user