Commit Graph

29 Commits

Author SHA1 Message Date
Michal Dorner
b37d4e9e86
Use micromatch instead of minimatch (#46)
* Use micromatch instead of minimatch

micromatch claims to support full Bash 4.3 spec and it actually passes all the tests. 
For example this fixes processing of '!(**/*.tsx|**/*.less)' pattern - needed by #45

* Update CHANGELOG.md
2020-10-23 12:33:44 +02:00
Michal Dorner
7b5334ddb5
Add links to some real world usage examples 2020-10-17 22:38:15 +02:00
Michal Dorner
75cbfb4be9
Support workflows triggered by any event (#44)
* Allow change detection on all event types

* mention commit SHA in docs for base parameter

* improve logging

* update CHANGELOG.md
2020-10-16 12:28:12 +02:00
Michal Dorner
9553dabbd8
Remove usage of --no-auto-gc option (#42)
* Remove usage of --no-auto-gc option

This option is not supported in git versions < 2.23.
Older git versions might be used in self-hosted runners.

* Update CHANGELOG
2020-10-06 13:38:18 +02:00
Michal Dorner
8b399ed168
Add minimal example to the top part of README 2020-10-01 10:55:29 +02:00
Michal Dorner
ff5bb057bf
v2.4.0 - support local execution with act + allow tags (#40)
* Avoid code repetition with exec() and output listeners

* Improve behavior for new branches and when it's running in ACT

* Detect parent commit only if needed

* Fix parent commit detection for initial commit

* Improve logging

* Improve current ref detection

* Fix issue when base is a already fetched tag

* Fix issue when base is a already fetched tag

* Update README

* Document usage with act

* Use `git log` to get changes in latest commit

* Disable other output for `git log`

* get short name from base ref + improve loggig

* update CHANGELOG
2020-09-30 00:32:49 +02:00
Michal Dorner
d9e86af7c0
Small improvement to project description 2020-09-14 18:49:18 +02:00
Michal Dorner
adb239d623
Add hint to use fetch-depth for feature branch workdlow 2020-09-14 18:09:37 +02:00
Michal Dorner
b4f32c4f08
Reworked README for v2.3 release (#37) 2020-09-14 17:19:32 +02:00
Michal Dorner
483986d0a7
Merge branch 'master' into develop 2020-08-14 22:03:31 +02:00
Michal Dorner
3b817c9974
Add support for pull_request_target (#30)
Complements previous commit:
 - adds modified index.js
 - bumps version to 2.2.1
2020-08-13 21:55:56 +02:00
Michal Dorner
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
Michal Dorner
caef9bef1f
Add working-directory input (#21) 2020-08-04 20:57:29 +02:00
Daksh Shah
e1ae9889cb
Fix multiple jobs workflow example (#25) 2020-07-16 12:33:30 +02:00
Michal Dorner
83deb9f037
Improve change detection for feature branches (#16)
* Detect changes against configured base branch

* Update README and action.yml

* Add job.outputs example

* Update CHANGELOG
2020-06-24 21:53:31 +02:00
Michal Dorner
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
Michal Dorner
4eb15bc267
Update README
Add links to pull_request / push events that trigger workflows
2020-06-15 22:15:38 +02:00
Michal Dorner
9ef7936e79
Fix URL in README 2020-06-15 21:57:00 +02:00
Michal Dorner
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
Tonye Jack
910e8b1235
Update README.md (#11)
* Update README.md

* Update version
2020-06-14 23:04:35 +02:00
Michal Dorner
1cbb925a17
Change detection via git + rename githubToken to token (#9) 2020-05-26 17:16:09 +02:00
Michal Dorner
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
Michal Dorner
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
Michal Dorner
9b321c4b3a
Fix status badge 2020-05-21 14:56:45 +02:00
Michal Dorner
25327a213e
Fix README & status badge (#5) 2020-05-21 14:53:14 +02:00
Michal Dorner
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
Michal Dorner
350b8cb78b Rename github-token input to githubToken 2020-05-21 00:41:27 +02:00
Michal Dorner
f29479bb44 Update README and action metadata 2020-05-21 00:31:39 +02:00
Michal Dorner
b78de5e86b Initial commit 2020-05-20 17:03:08 +02:00