Skip to content

Commit 2e14868

Browse files
committed
ci: Add a sanity check for .version
To ensure mistakes such as #506 will not happen again.
1 parent d673b5d commit 2e14868

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
run: |
6262
./build.sh --builddir ~/package-output/ --static build
6363
ver=$(cat .version)
64+
if [ "$ver" != "${{github.ref_name}}" ]; then echo ".version does not match the Git tag"; exit 1; fi
6465
mv ~/package-output/ ~/maddy-$ver-x86_64-linux-musl
6566
cd ~
6667
tar c ./maddy-$ver-x86_64-linux-musl | zstd > ~/maddy-x86_64-linux-musl.tar.zst

0 commit comments

Comments
 (0)