Skip to content

Commit

Permalink
ci: Merge no_tag rules to default ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Milani committed Feb 8, 2024
1 parent 45223c9 commit c5ee234
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
# Triggers on merge resuests, branch pipelines UNLESS there is an open merge requests
workflow:
rules:
- if: $CI_COMMIT_TAG
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never
Expand Down Expand Up @@ -41,14 +43,8 @@ stages:
- lint_format_python
- documentation

.rules_not_tag:
rules:
- if: $CI_COMMIT_TAG
when: never

.rules_changes_anything:
rules:
- !reference [.rules_not_tag, rules]
- changes:
- include/CoMMA/*.{h,md}
- src/*.cpp
Expand All @@ -64,7 +60,6 @@ stages:

.rules_changes_sources:
rules:
- !reference [.rules_not_tag, rules]
- changes:
- include/CoMMA/*.h
- src/*.cpp
Expand All @@ -75,7 +70,6 @@ stages:

.rules_changes_sources_linting:
rules:
- !reference [.rules_not_tag, rules]
- changes:
- include/CoMMA/*.h
- src/*.cpp
Expand All @@ -88,7 +82,6 @@ stages:

.rules_changes_python:
rules:
- !reference [.rules_not_tag, rules]
- changes:
- examples/scripts/*.py
- examples/scripts/pyproject.toml
Expand Down Expand Up @@ -160,7 +153,6 @@ job:test_install_pkgconfig:
stage: test
needs: ['job:init', 'job:build_dbg']
rules:
- !reference [.rules_not_tag, rules]
- changes:
- include/CoMMA/*.h
- CMakeLists.txt
Expand Down Expand Up @@ -314,7 +306,6 @@ pages:
paths:
- public
rules:
- !reference [.rules_not_tag, rules]
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
changes:
- include/CoMMA/*.{h,md}
Expand Down

0 comments on commit c5ee234

Please sign in to comment.