Skip to content

Commit 462b9d2

Browse files
authored
feat: support excluding directories (#110)
* feat: support excluding directories * fix: added missing "inputs." * fix: empty string is not a glob * fix: used valid glob * fix: used valid syntax * fix: missing --ignore * Update README.md
1 parent 6bd9182 commit 462b9d2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/flutter_package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ on:
4747
required: false
4848
type: string
4949
default: "."
50+
package_get_excludes:
51+
required: false
52+
type: string
53+
default: "!*"
5054

5155
jobs:
5256
build:
@@ -72,7 +76,7 @@ jobs:
7276
run: |
7377
flutter pub global activate very_good_cli
7478
very_good --analytics false
75-
very_good packages get --recursive
79+
very_good packages get --recursive --ignore=${{inputs.package_get_excludes}}
7680
7781
- name: ⚙️ Run Setup
7882
if: "${{inputs.setup != ''}}"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ The Flutter package workflow consists of the following steps:
215215

216216
**Default** `"ubuntu-latest"`
217217

218+
#### `package_get_excludes`
219+
220+
**Optional** List of paths to exclude from `packages get`. Supports `globs` to describe file patterns.
221+
222+
**Default** `"!*"`
223+
218224
### Example Usage
219225

220226
```yaml

0 commit comments

Comments
 (0)