From 5b8731aad2cd9ac11055d510ce7b4306b3ced1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Tue, 19 Nov 2024 09:36:46 +0100 Subject: [PATCH] Add needs --- .github/workflows/release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a05e052..bf4ff90 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,9 +29,15 @@ jobs: - name: Get the rosetta version run: | CARGO_VERSION=$(yq .package.version "Cargo.toml") + if [ ! "1.2.0" = "$CARGO_VERSION" ] ; then + echo "::error::$CARGO_VERSION does not match ${{ github.ref_name }}." + exit 1 + fi + fi echo "OUTFILE_SHORT=${{ env.OUTFOLDER }}/windows/concordium-rosetta-$CARGO_VERSION" >> $GITHUB_ENV release-rosetta-macos: + needs: rosetta-version runs-on: macos-latest environment: release steps: @@ -76,6 +82,7 @@ jobs: release-rosetta-windows: runs-on: windows-latest + needs: rosetta-version environment: release steps: - name: Checkout Repository