File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,10 @@ function getBooleanInput(name, options) {
214214exports . getBooleanInput = getBooleanInput ;
215215function getPathsToUpdate ( ) {
216216 const rawPaths = core_1 . getInput ( 'file-path' ) ;
217- return flatten ( rawPaths . split ( / \r ? \n / ) . map ( expandPathPattern ) ) ;
217+ const allowDot = getBooleanInput ( 'allow-dot' ) ;
218+ return flatten ( rawPaths . split ( / \r ? \n / ) . map ( ( path ) => {
219+ return expandPathPattern ( path , { dot : allowDot } ) ;
220+ } ) ) ;
218221}
219222exports . getPathsToUpdate = getPathsToUpdate ;
220223function getActionOptions ( ) {
@@ -228,10 +231,10 @@ function isNotNull(arg) {
228231 return arg !== null ;
229232}
230233exports . isNotNull = isNotNull ;
231- function expandPathPattern ( path ) {
234+ function expandPathPattern ( path , { dot = false } ) {
232235 const pathPattern = path . trim ( ) ;
233236 if ( fast_glob_1 . isDynamicPattern ( pathPattern ) ) {
234- return fast_glob_1 . sync ( pathPattern ) ;
237+ return fast_glob_1 . sync ( pathPattern , { dot } ) ;
235238 }
236239 return [ pathPattern ] ;
237240}
You can’t perform that action at this time.
0 commit comments