Skip to content

Commit fde05d6

Browse files
committed
ci: fix version check
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent af86af0 commit fde05d6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/wrpc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ jobs:
250250
continue-on-error: ${{ github.repository_owner != 'wrpc' }}
251251
run: |
252252
pkgver=$(cargo pkgid | cut -d '@' -f 2)
253-
if ! [ "$pkgver" = "${{ steps.ctx.outputs.version }}" ]; then
254-
echo "version mismatch, $pkgver (package) != ${{ steps.ctx.outputs.version }} (tag)"
253+
tagver=${{ steps.ctx.outputs.version }}
254+
if ! [ "$pkgver" = "$tagver" ]; then
255+
echo "version mismatch, $pkgver (package) != $tagver (tag)"
255256
exit 1
256257
fi
257258
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)