mirror of https://github.com/actions/toolkit
Probably you mean the files with that extension
... not the files with those names?pull/1126/head
parent
c5278cdd08
commit
6914a6be33
|
@ -11,7 +11,7 @@ Relative paths and absolute paths are both allowed. Relative paths are rooted ag
|
|||
```js
|
||||
const glob = require('@actions/glob');
|
||||
|
||||
const patterns = ['**/tar.gz', '**/tar.bz']
|
||||
const patterns = ['**/*.tar.gz', '**/*.tar.bz']
|
||||
const globber = await glob.create(patterns.join('\n'))
|
||||
const files = await globber.glob()
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue