Skip to content

Commit 12de90b

Browse files
committed
CI/CD: Check tag version matches version file in releases
1 parent 0d4e817 commit 12de90b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/create_release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ jobs:
3737
echo "PREVIEW=false" >> $GITHUB_ENV
3838
fi
3939
40+
41+
- name: Check Tag Matches Version
42+
run: |
43+
VER="`cat version`"
44+
if [ "${{env.VERSION}}" != "$VER" ]; then
45+
echo "Error: Tag version (${{env.VERSION}}) doesn't match version file ($VER)."
46+
exit 1
47+
fi
48+
4049
- name: Build Package
4150
uses: ./.github/actions/build
4251

0 commit comments

Comments
 (0)