Skip to content

Commit 69a071c

Browse files
committed
👷 ci(circleci): update CI workflow with version management
- add job for saving the next version before release - set SEMVER environment variable based on the next-version file - ensure toolkit/no_release job depends on successful next version save
1 parent 2d1dfe4 commit 69a071c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎.circleci/config.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,31 @@ workflows:
9696
- not: << pipeline.parameters.success-flag >>
9797
- not: << pipeline.parameters.validation-flag >>
9898
jobs:
99+
- toolkit/save_next_version:
100+
min_rust_version: << pipeline.parameters.min-rust-version >>
101+
99102
- toolkit/make_release:
100103
context:
101104
- release
102105
- bot-check
106+
requires:
107+
- toolkit/save_next_version
108+
pre-steps:
109+
- attach_workspace:
110+
at: /tmp/workspace
111+
- run:
112+
name: Set SEMVER based on next-version file
113+
command: |
114+
set +ex
115+
export SEMVER=$(cat /tmp/workspace/next-version)
116+
echo $SEMVER
117+
echo "export SEMVER=$SEMVER" >> "$BASH_ENV"
103118
ssh_fingerprint: << pipeline.parameters.fingerprint >>
104119
min_rust_version: << pipeline.parameters.min-rust-version >>
105120
when_use_workspace: false
121+
122+
- toolkit/no_release:
123+
min_rust_version: << pipeline.parameters.min-rust-version >>
124+
requires:
125+
- toolkit/save_next_version
126+
- failed

0 commit comments

Comments
 (0)