Skip to content

Commit

Permalink
Update dist file
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 3, 2021
1 parent dd4dc6b commit 64a0d1a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ function getBooleanInput(name, options) {
exports.getBooleanInput = getBooleanInput;
function getPathsToUpdate() {
const rawPaths = core_1.getInput('file-path');
return flatten(rawPaths.split(/\r?\n/).map(expandPathPattern));
const allowDot = getBooleanInput('allow-dot');
return flatten(rawPaths.split(/\r?\n/).map((path) => {
return expandPathPattern(path, { dot: allowDot });
}));
}
exports.getPathsToUpdate = getPathsToUpdate;
function getActionOptions() {
Expand All @@ -228,10 +231,10 @@ function isNotNull(arg) {
return arg !== null;
}
exports.isNotNull = isNotNull;
function expandPathPattern(path) {
function expandPathPattern(path, { dot = false }) {
const pathPattern = path.trim();
if (fast_glob_1.isDynamicPattern(pathPattern)) {
return fast_glob_1.sync(pathPattern);
return fast_glob_1.sync(pathPattern, { dot });
}
return [pathPattern];
}
Expand Down

0 comments on commit 64a0d1a

Please sign in to comment.