Skip to content

Commit 9f759da

Browse files
author
Adam Duncan
authored
Update README.md
Fixes #1
1 parent 13a2c54 commit 9f759da

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

README.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,22 @@
33
This implements the ability to have steps / pipelines only execute when certain files have changed, using the following additional YAML syntax:
44

55
```
6-
pipeline:
7-
frontend:
8-
image: node
9-
commands:
10-
- cd app
11-
- npm run test
12-
+ when:
13-
+ changeset:
14-
+ includes: [ **/**.js, **/**.css, **/**.html ]
15-
backend:
16-
image: golang
17-
commands:
18-
- go build
19-
- go test -v
20-
+ when:
21-
+ changeset:
22-
+ includes: [ **/**.go ]
23-
24-
+trigger:
25-
+ changeset:
26-
+ includes: [ **/**.go ]
6+
kind: pipeline
7+
name: default
8+
9+
steps:
10+
- name: frontend
11+
image: node
12+
commands:
13+
- cd app
14+
- npm run test
15+
when:
16+
changeset:
17+
includes: [ **/**.js, **/**.css, **/**.html ]
18+
19+
trigger:
20+
changeset:
21+
includes: [ **/**.go ]
2722
```
2823

2924
This plugin is compatible with the [Drone Config Plugin Pipeline](https://github.com/microadam/drone-config-plugin-pipeline)

0 commit comments

Comments
 (0)