December 26, 2021, 3:30am
Drone has several conditions to trigger off. Is there one that will trigger off changes to specific files or dirs ? Main example would be to NOT trigger when README.md is changed, only when the main repo files change.
only: changes: type syntax maybe ?
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
Very annoying to have a pipeline run when a 2-word change to README.md is pushed.
December 26, 2021, 10:21pm
All Drone triggers are content-independent. As a workaround you may use
exit 78 command to exit your pipeline stages before compilation steps. Here is an example:
- name: trigger
- test $DRONE_BUILD_EVENT = pull_request
- git --no-pager diff --name-only $DIFF_STRING
| grep -q -e ^[.]drone[.] -e ^Makefile$ -e [.]c$
|| exit 78
- name: build
- name: test
If you want to limit pipeline or pipeline step execution based on files changed, you can install an extension for this. See
December 28, 2021, 6:20pm
Yeah, I saw that, thanks. Unfortunately it does’t support Gitea (yet).