Skip to content

Commit 6a84a66

Browse files
authored
Merge pull request #767 from jerus-org/update-pipeline-flags-and-conditions
👷 ci(config): update pipeline flags and conditions
2 parents 4067908 + adf8891 commit 6a84a66

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.circleci/config.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ parameters:
99
fingerprint:
1010
type: string
1111
default: SHA256:OkxsH8Z6Iim6WDJBaII9eTT9aaO1f3eDc6IpsgYYPVg
12-
validation-flag:
12+
release-flag:
1313
type: boolean
1414
default: false
15-
description: "If true, the validation pipeline will be executed."
15+
description: "If true, the release pipeline will be executed."
1616
success-flag:
1717
type: boolean
1818
default: false
1919
description: "If true, the success pipeline will be executed."
20+
validation-flag:
21+
type: boolean
22+
default: false
23+
description: "If true, the validation pipeline will be executed."
2024

2125
orbs:
2226
toolkit: jerus-org/[email protected]
@@ -35,6 +39,7 @@ workflows:
3539
and:
3640
- not:
3741
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
42+
- not: << pipeline.parameters.release-flag >>
3843
- not: << pipeline.parameters.success-flag >>
3944
- not: << pipeline.parameters.validation-flag >>
4045

@@ -48,6 +53,7 @@ workflows:
4853
and:
4954
- not:
5055
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
56+
- not: << pipeline.parameters.release-flag >>
5157
- not: << pipeline.parameters.success-flag >>
5258
- << pipeline.parameters.validation-flag >>
5359
jobs:
@@ -133,6 +139,7 @@ workflows:
133139
- not:
134140
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
135141
- << pipeline.parameters.success-flag >>
142+
- not: << pipeline.parameters.release-flag >>
136143
- not: << pipeline.parameters.validation-flag >>
137144

138145
jobs:
@@ -141,8 +148,11 @@ workflows:
141148
release:
142149
when:
143150
and:
144-
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
145-
- equal: ["release check", << pipeline.schedule.name >>]
151+
- or:
152+
- and:
153+
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
154+
- equal: ["release check", << pipeline.schedule.name >>]
155+
- << pipeline.parameters.release-flag >>
146156
- not: << pipeline.parameters.success-flag >>
147157
- not: << pipeline.parameters.validation-flag >>
148158
jobs:

PRLOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<!-- -->>
21
# Changelog
32

43
All notable changes to this project will be documented in this file.
@@ -11,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1110
### Changed
1211

1312
- 🔥 chore(changelog)-remove CHANGELOG.md file(pr [#766])
13+
- 👷 ci(config)-update pipeline flags and conditions(pr [#767])
1414

1515
### Fixed
1616

@@ -864,6 +864,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
864864
[#764]: https://github.com/jerus-org/mockd/pull/764
865865
[#763]: https://github.com/jerus-org/mockd/pull/763
866866
[#766]: https://github.com/jerus-org/mockd/pull/766
867+
[#767]: https://github.com/jerus-org/mockd/pull/767
867868
[Unreleased]: https://github.com/jerus-org/mockd/compare/v0.4.52...HEAD
868869
[0.4.52]: https://github.com/jerus-org/mockd/compare/v0.4.51...v0.4.52
869870
[0.4.51]: https://github.com/jerus-org/mockd/compare/v0.4.50...v0.4.51

0 commit comments

Comments
 (0)