Skip to content

Commit

Permalink
fix: update version suffix only if not managed by release please (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov authored Jan 22, 2025
1 parent 2cfce1a commit 94679e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,13 @@ jobs:
(
cd "${COMPONENT_PATH}"
if [[ '${{ inputs.version-suffix }}' != '' ]]; then
cargo workspaces version custom ${COMPONENT_VERSION}-${{ inputs.version-suffix }} \
--all --no-git-commit --force "*" --yes
if grep -qE '# x-release-please-version' Cargo.toml; then
echo "Cargo.toml version manages through release-please. Skip the version suffix update."
else
echo "Adding suffix to the version."
cargo workspaces version custom ${COMPONENT_VERSION}-${{ inputs.version-suffix }} \
--all --no-git-commit --force "*" --yes
fi
fi
cargo update --workspace
)
Expand Down

0 comments on commit 94679e3

Please sign in to comment.