Skip to content

Commit

Permalink
feat: support excluding directories (#110)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
alestiago authored Apr 25, 2023
1 parent 6bd9182 commit 462b9d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/flutter_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ on:
required: false
type: string
default: "."
package_get_excludes:
required: false
type: string
default: "!*"

jobs:
build:
Expand All @@ -72,7 +76,7 @@ jobs:
run: |
flutter pub global activate very_good_cli
very_good --analytics false
very_good packages get --recursive
very_good packages get --recursive --ignore=${{inputs.package_get_excludes}}
- name: ⚙️ Run Setup
if: "${{inputs.setup != ''}}"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ The Flutter package workflow consists of the following steps:

**Default** `"ubuntu-latest"`

#### `package_get_excludes`

**Optional** List of paths to exclude from `packages get`. Supports `globs` to describe file patterns.

**Default** `"!*"`

### Example Usage

```yaml
Expand Down

0 comments on commit 462b9d2

Please sign in to comment.