mirror of
https://gitlab.com/fedora/bootc/base-images.git
synced 2026-09-03 06:50:46 +00:00
ci: skip pipeline when only non-build files change
Add workflow rules to skip GitLab CI when commits only modify files that don't affect the build or tests: - renovate.json (Renovate bot config) - README.md (documentation) - LICENSE (license file) - .tekton/* (Konflux pipelines, tested separately) This avoids wasting CI resources on changes that don't need validation.
This commit is contained in:
parent
13dbbf8fea
commit
06462024df
1 changed files with 11 additions and 0 deletions
|
|
@ -1,4 +1,15 @@
|
|||
---
|
||||
workflow:
|
||||
rules:
|
||||
# Skip CI if only non-build files changed
|
||||
- changes:
|
||||
- renovate.json
|
||||
- README.md
|
||||
- LICENSE
|
||||
- .tekton/*
|
||||
when: never
|
||||
- when: always
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue