From 6ec9a1ee114b79da11d038810cb67faf0df3e169 Mon Sep 17 00:00:00 2001 From: Tao Lu Date: Wed, 25 Jan 2023 16:23:06 -0600 Subject: [PATCH] Fix version check --- .github/workflows/release-rust.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-rust.yaml b/.github/workflows/release-rust.yaml index 5bad74b..6236c2f 100644 --- a/.github/workflows/release-rust.yaml +++ b/.github/workflows/release-rust.yaml @@ -28,7 +28,7 @@ jobs: - name: Build run: cargo build --release --verbose --target=${{ matrix.target }} --manifest-path rozy/Cargo.toml - name: Ensure version is correct - run: rozy/target/${{ matrix.target }}/release/ozy --version | grep "$(echo $GITHUB_REF | cut -d / -f 3)" + run: rozy/target/${{ matrix.target }}/release/ozy --version | grep "$(echo $GITHUB_REF_NAME | cut -c2-)" - name: Rename run: mv rozy/target/${{ matrix.target }}/release/ozy rozy/target/${{ matrix.target }}/release/${{ matrix.asset }} - name: Upload binaries to release