Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemand committed Nov 4, 2024
1 parent 4af5666 commit ad5338d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
GHC_VERSION: '9.6.4'
RUST_VERSION: '1.73'
SERVICE: "${{ inputs.service }}"
VERSION_TEST: '7.0.1-rc'

permissions:
id-token: write
Expand Down Expand Up @@ -59,9 +60,9 @@ jobs:
run: |
CARGO_VERSION=$(yq .version package.yaml)
if [ -z "${{ env.SERVICE }}" ]; then
IFS='-' read -r VERSION BUILD RELEASE_TYPE <<< "${{ github.ref_name }}"
IFS='-' read -r VERSION BUILD RELEASE_TYPE <<< "${{ env.VERSION_TEST }}"
if [ ! "$VERSION" = "$CARGO_VERSION" ]; then
echo "::error::${GITHUB_REF_NAME} does not match ${VERSION}."
echo "::error::${CARGO_VERSION} does not match ${VERSION}."
exit 1
fi
else
Expand Down

0 comments on commit ad5338d

Please sign in to comment.