forked from dorny/paths-filter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AurorNZ/use-micromatch
Use micromatch
- Loading branch information
Showing
6 changed files
with
18,306 additions
and
832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,44 +94,3 @@ jobs: | |
- name: count-test | ||
if: steps.filter.outputs.local_count != 1 | ||
run: exit 1 | ||
|
||
test-change-type: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: configure GIT user | ||
run: git config user.email "[email protected]" && git config user.name "John Doe" | ||
- name: modify working tree | ||
run: touch add.txt && rm README.md && echo "TEST" > LICENSE | ||
- name: commit changes | ||
run: git add -A && git commit -a -m 'testing this action' | ||
- uses: ./ | ||
id: filter | ||
with: | ||
token: '' | ||
list-files: shell | ||
filters: | | ||
added: | ||
- added: "add.txt" | ||
deleted: | ||
- deleted: "README.md" | ||
modified: | ||
- modified: "LICENSE" | ||
any: | ||
- added|deleted|modified: "*" | ||
- name: Print 'added_files' | ||
run: echo ${{steps.filter.outputs.added_files}} | ||
- name: Print 'modified_files' | ||
run: echo ${{steps.filter.outputs.modified_files}} | ||
- name: Print 'deleted_files' | ||
run: echo ${{steps.filter.outputs.deleted_files}} | ||
- name: filter-test | ||
if: | | ||
steps.filter.outputs.added != 'true' | ||
|| steps.filter.outputs.deleted != 'true' | ||
|| steps.filter.outputs.modified != 'true' | ||
|| steps.filter.outputs.any != 'true' | ||
|| steps.filter.outputs.added_files != 'add.txt' | ||
|| steps.filter.outputs.modified_files != 'LICENSE' | ||
|| steps.filter.outputs.deleted_files != 'README.md' | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.