Skip to content

Commit

Permalink
[uni] update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
snowfoxsh authored Feb 18, 2025
1 parent caa9a8e commit 7f373d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ jobs:
with:
file: Cargo.toml
field: package.version

- name: Ensure Cargo.toml version matches tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
TAG_VERSION="${GITHUB_REF_NAME#v}"
CARGO_VERSION="${{ steps.cargo_toml_version.outputs.value }}"
if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then
echo "Error: Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)"
Expand Down

0 comments on commit 7f373d9

Please sign in to comment.