mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +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
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -4500,6 +4500,10 @@ const git = __importStar(__webpack_require__(136));
|
|||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
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