👷 ci(circleci): add kdeets installation step to release workflow (#157)
- install kdeets as part of release pipeline for enhanced functionality - ensure kdeets is available before checking crates.io Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
This commit is contained in:
@@ -36,6 +36,9 @@ commands:
|
|||||||
type: string
|
type: string
|
||||||
description: "Crate name on crates.io"
|
description: "Crate name on crates.io"
|
||||||
steps:
|
steps:
|
||||||
|
- run:
|
||||||
|
name: install kdeets
|
||||||
|
command: cargo install kdeets
|
||||||
- run:
|
- run:
|
||||||
name: Check crates.io for << parameters.package >>
|
name: Check crates.io for << parameters.package >>
|
||||||
command: |
|
command: |
|
||||||
@@ -52,8 +55,9 @@ commands:
|
|||||||
|
|
||||||
USER_AGENT="circleci-toolkit/1.0 (https://github.com/jerus-org/circleci-toolkit)"
|
USER_AGENT="circleci-toolkit/1.0 (https://github.com/jerus-org/circleci-toolkit)"
|
||||||
|
|
||||||
if curl -s -H "User-Agent: ${USER_AGENT}" "https://crates.io/api/v1/crates/<< parameters.package >>/versions" | \
|
most_recent_published="$(kdeets crate -br cull-gmail)"
|
||||||
jq -e ".versions[] | select(.num == \"${VERSION}\")" > /dev/null 2>&1; then
|
|
||||||
|
if [[ ${most_recent_published} == ${VERSION} ]]; then
|
||||||
echo "Version ${VERSION} exists on crates.io - will skip publish"
|
echo "Version ${VERSION} exists on crates.io - will skip publish"
|
||||||
echo "export SKIP_PUBLISH=true" >> "$BASH_ENV"
|
echo "export SKIP_PUBLISH=true" >> "$BASH_ENV"
|
||||||
else
|
else
|
||||||
|
|||||||
2
PRLOG.md
2
PRLOG.md
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- 👷 ci(circleci)-add release configuration for automated deployment(pr [#154])
|
- 👷 ci(circleci)-add release configuration for automated deployment(pr [#154])
|
||||||
- 👷 ci(circleci)-update release workflow configuration(pr [#155])
|
- 👷 ci(circleci)-update release workflow configuration(pr [#155])
|
||||||
- 👷 ci(circleci)-simplify nextsv version calculation(pr [#156])
|
- 👷 ci(circleci)-simplify nextsv version calculation(pr [#156])
|
||||||
|
- 👷 ci(circleci)-add kdeets installation step to release workflow(pr [#157])
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
@@ -443,6 +444,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
[#154]: https://github.com/jerus-org/cull-gmail/pull/154
|
[#154]: https://github.com/jerus-org/cull-gmail/pull/154
|
||||||
[#155]: https://github.com/jerus-org/cull-gmail/pull/155
|
[#155]: https://github.com/jerus-org/cull-gmail/pull/155
|
||||||
[#156]: https://github.com/jerus-org/cull-gmail/pull/156
|
[#156]: https://github.com/jerus-org/cull-gmail/pull/156
|
||||||
|
[#157]: https://github.com/jerus-org/cull-gmail/pull/157
|
||||||
[Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.0.16...HEAD
|
[Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.0.16...HEAD
|
||||||
[0.0.16]: https://github.com/jerus-org/cull-gmail/compare/v0.0.15...v0.0.16
|
[0.0.16]: https://github.com/jerus-org/cull-gmail/compare/v0.0.15...v0.0.16
|
||||||
[0.0.15]: https://github.com/jerus-org/cull-gmail/compare/v0.0.14...v0.0.15
|
[0.0.15]: https://github.com/jerus-org/cull-gmail/compare/v0.0.14...v0.0.15
|
||||||
|
|||||||
Reference in New Issue
Block a user