Skip to content

Commit dd5a881

Browse files
authored
Merge pull request #94 from jerus-org/add-release-flag-parameter-to-CircleCI-config
👷 ci(config): add release-flag parameter to CircleCI config
2 parents 7751320 + 953cc9a commit dd5a881

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.circleci/config.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ parameters:
1515
type: boolean
1616
default: false
1717
description: "If true, the success pipeline will be executed."
18+
release-flag:
19+
type: boolean
20+
default: false
21+
description: "If true, the success pipeline will be executed."
1822

1923
orbs:
2024
toolkit: jerus-org/[email protected]
@@ -32,6 +36,7 @@ workflows:
3236
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
3337
- not: << pipeline.parameters.success-flag >>
3438
- not: << pipeline.parameters.validation-flag >>
39+
- not: << pipeline.parameters.release-flag >>
3540

3641
jobs:
3742
- toolkit/choose_pipeline:
@@ -45,6 +50,7 @@ workflows:
4550
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
4651
- not: << pipeline.parameters.success-flag >>
4752
- << pipeline.parameters.validation-flag >>
53+
- not: << pipeline.parameters.release-flag >>
4854
jobs:
4955
- toolkit/label:
5056
min_rust_version: << pipeline.parameters.min-rust-version >>
@@ -84,17 +90,21 @@ workflows:
8490
equal: [scheduled_pipeline, << pipeline.trigger_source >>]
8591
- << pipeline.parameters.success-flag >>
8692
- not: << pipeline.parameters.validation-flag >>
93+
- not: << pipeline.parameters.release-flag >>
8794

8895
jobs:
8996
- toolkit/end_success
9097

9198
release:
9299
when:
93-
and:
94-
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
95-
- equal: ["release check", << pipeline.schedule.name >>]
96-
- not: << pipeline.parameters.success-flag >>
97-
- not: << pipeline.parameters.validation-flag >>
100+
or:
101+
- and:
102+
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
103+
- equal: ["release check", << pipeline.schedule.name >>]
104+
- and:
105+
- not: << pipeline.parameters.success-flag >>
106+
- not: << pipeline.parameters.validation-flag >>
107+
- << pipeline.parameters.release-flag >>
98108
jobs:
99109
- toolkit/save_next_version:
100110
min_rust_version: << pipeline.parameters.min-rust-version >>

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- 👷 ci(circleci)-update toolkit orb version(pr [#93])
13+
- 👷 ci(config)-add release-flag parameter to CircleCI config(pr [#94])
1314

1415
### Security
1516

@@ -295,6 +296,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
295296
[#91]: https://github.com/jerus-org/lambda_sqs/pull/91
296297
[#92]: https://github.com/jerus-org/lambda_sqs/pull/92
297298
[#93]: https://github.com/jerus-org/lambda_sqs/pull/93
299+
[#94]: https://github.com/jerus-org/lambda_sqs/pull/94
298300
[Unreleased]: https://github.com/jerus-org/lambda_sqs/compare/v0.2.28...HEAD
299301
[0.2.28]: https://github.com/jerus-org/lambda_sqs/compare/v0.2.27...v0.2.28
300302
[0.2.27]: https://github.com/jerus-org/lambda_sqs/compare/v0.2.26...v0.2.27

0 commit comments

Comments
 (0)