Skip to content

Commit

Permalink
fix grepping version in Cargo.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
  • Loading branch information
chmouel committed Sep 13, 2023
1 parent 1ed9f24 commit d95f539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ jobs:
run: git fetch --force --tags
- name: Check that the Cargo.yaml has been updated with tag
run: |
if ! grep -q "version: ${GITHUB_REF#refs/tags/}" Cargo.toml; then
if ! grep -E "version[ ]*=[ ]*.${GITHUB_REF#refs/tags/}." Cargo.toml; then
echo "Cargo.toml version does not match tag, version in current Cargo.toml:"
grep 'version: ' Cargo.toml |sed 's/.*: //'
exit 1
fi
- uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit d95f539

Please sign in to comment.