24 Commits

Author SHA1 Message Date
9e7258bb2a Specify job permissions in the pull request workflow 2022-10-12 22:02:50 +02:00
e0f036e43d updating to actions/checkout@v3 in order to avoid the set-output deprecation warning 2022-10-12 12:21:43 +02:00
e8f370c197 Run PR workflow on PR to any branch 2021-04-11 20:58:42 +02:00
a339507743 Skip CI when modifying only README or CHANGELOG 2021-02-20 11:30:21 +01:00
a2730492f0 Add test for ${FILTER_NAME}_count output 2021-01-29 19:59:09 +01:00
9e8c9af501 Add "changes" output variable to support matrix job configuration 2020-12-17 22:33:11 +01:00
e4d886f503 Provide shell and escape options when formatting matching files 2020-12-17 22:13:28 +01:00
1934d574ce Support local changes 2020-11-22 20:59:32 +01:00
81c90ccae8 Change detection using git "three dot" diff (#35)
* Rework change detection via `git diff`

Previous implementation performed simple diff between two versions. New implementation fetches on demand more commits to have the merge base between two branches. Now it will detect only changes introduced by branch that was pushed, instead of mixing with changes introduced meanwhile on the base branch.
2020-09-01 22:47:38 +02:00
3f845744aa Export files matching rules (#32)
* Export files matching rules

* Improve debug output

* Fix PR test workflow

* Always quote output path + fix PR test

* Use proper single quote escaping in workflow file

* Improve error handling and docs for list-files input parameter
2020-08-30 21:18:14 +02:00
f34047f516 Export changed files grouped by change status (#23) 2020-08-04 20:57:29 +02:00
1ff702da35 Extend filter syntax with optional specification of file status: add, modified, deleted (#22)
* Add support for specification of change type (add,modified,delete)

* Use NULL as separator in git-diff command output

* Improve PR test workflow

* Fix the workflow file
2020-08-04 20:57:29 +02:00
caef9bef1f Add working-directory input (#21) 2020-08-04 20:57:29 +02:00
14dd70c742 Add develop branch to PR verification 2020-08-04 20:57:29 +02:00
7d201829e2 Support reusable paths blocks via yaml anchors (#13)
* Add support for nested arrays of path expressions

* Remove pull_request trigger type options

Default value is fine: opened, synchronize, reopened

* Add CHANGELOG

* Update README
2020-06-19 23:39:06 +02:00
affb29871a Support push event (#10)
* Support triggering from push event
* Add self-test to build workflow
* Update action metadata
2020-06-15 21:49:10 +02:00
1cbb925a17 Change detection via git + rename githubToken to token (#9) 2020-05-26 17:16:09 +02:00
a2e5f9f7bb Filters input accepts path to external yaml file (#8)
* Filters input accepts path to external yaml file

* Fix formatting and eslint issues

* Fix file ext of filters yaml file

* Update documentation in README file
2020-05-24 22:50:33 +02:00
0612377665 Do not require user provided githubToken input (configure default) (#7)
* Do not require user provided `githubToken` input  (configure default)

* Remove `edited` from workflow example

Idea of this example was to show setup where CI runs only when particular files are changed. Triggering workflow when name or description of PR is edited is not needed for this use case.
2020-05-24 21:17:51 +02:00
25327a213e Fix README & status badge (#5) 2020-05-21 14:53:14 +02:00
29d498d99d Fix globbing, update metadata, update ncc (#4)
* Enable minimatch dot option
It's not a default globbing behavior, however for our use-case is much more convenient to match those files.

* Update README and package.json
2020-05-21 13:46:48 +02:00
f9b6173f5e Fixes - making action pass self-test (#3)
* Remove accidental string interpolation from action.yml

* Fix test workflow filters

* Improve self-test

* Add test case for matching any changed file

* Fix workflow test - step `name` was used instead of `id`

* Extend default pull_request trigger types

* Remove `edited` trigger to avoid executing workflow on non-code changes
2020-05-21 01:37:33 +02:00
94603ab6f7 Update test workflow (#2) 2020-05-21 01:07:35 +02:00
b78de5e86b Initial commit 2020-05-20 17:03:08 +02:00