This is an automated email from the ASF dual-hosted git repository.
yuxia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git
The following commit(s) were added to refs/heads/main by this push:
new 43879ce ci: update verify tag version
43879ce is described below
commit 43879ce0bd6b1e452a88134ed70a8c81696dc7c7
Author: luoyuxia <[email protected]>
AuthorDate: Mon Mar 2 11:26:39 2026 +0800
ci: update verify tag version
---
.github/actions/verify-tag-version/action.yml | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/.github/actions/verify-tag-version/action.yml
b/.github/actions/verify-tag-version/action.yml
index ad16b4f..1b34bdb 100644
--- a/.github/actions/verify-tag-version/action.yml
+++ b/.github/actions/verify-tag-version/action.yml
@@ -26,12 +26,16 @@ runs:
using: 'composite'
steps:
- run: |
- TAG_VERSION="${GITHUB_REF#refs/tags/v}"
- CRATE_VERSION=$(sed -n '/^\[workspace.package\]/,/^\[/p' Cargo.toml |
grep '^\s*version\s*=' | head -1 | sed -E 's/.*"([^"]+)".*/\1/')
- base() { echo "$1" | sed -E 's/-rc(\.[0-9]+|[0-9]+)$//'; }
- if [ "$(base "$TAG_VERSION")" != "$(base "$CRATE_VERSION")" ]; then
- echo "::error::Tag version ($TAG_VERSION) does not match Cargo.toml
version ($CRATE_VERSION). Run scripts/bump-version.sh before tagging, or tag
the version that is in Cargo.toml."
- exit 1
- fi
echo "Tag and crate version match: $TAG_VERSION"
shell: bash
+# uncomment for 0.1.0-incubating-rc0, add it back when incubating is not
needed anymore
+# - run: |
+# TAG_VERSION="${GITHUB_REF#refs/tags/v}"
+# CRATE_VERSION=$(sed -n '/^\[workspace.package\]/,/^\[/p' Cargo.toml |
grep '^\s*version\s*=' | head -1 | sed -E 's/.*"([^"]+)".*/\1/')
+# base() { echo "$1" | sed -E 's/-rc(\.[0-9]+|[0-9]+)$//'; }
+# if [ "$(base "$TAG_VERSION")" != "$(base "$CRATE_VERSION")" ]; then
+# echo "::error::Tag version ($TAG_VERSION) does not match Cargo.toml
version ($CRATE_VERSION). Run scripts/bump-version.sh before tagging, or tag
the version that is in Cargo.toml."
+# exit 1
+# fi
+# echo "Tag and crate version match: $TAG_VERSION"
+# shell: bash