Skip to content

Commit a4c1378

Browse files
add exclude paths attribute to job definition (#491)
1 parent 5a8fae5 commit a4c1378

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

internal/model/job.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type Job struct {
5252
CredentialsMetadata []Credential `json:"credentials-metadata" yaml:"-"`
5353
MaxUpdaterRunTime int `json:"max-updater-run-time" yaml:"max-updater-run-time,omitempty"`
5454
UpdateCooldown *UpdateCooldown `json:"cooldown,omitempty" yaml:"cooldown,omitempty"`
55+
ExcludePaths []string `json:"exclude-paths" yaml:"exclude-paths,omitempty"`
5556
}
5657

5758
func (j *Job) UseCaseInsensitiveFileSystem() bool {

internal/model/job_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,8 @@ job:
369369
exclude:
370370
- dependency-name-3
371371
- dependency-name-4
372+
exclude-paths:
373+
- "docs/"
374+
- "examples/"
375+
- "test/"
372376
`

0 commit comments

Comments
 (0)