wip
This commit is contained in:
parent
61d3055e77
commit
21129c90a8
12
.github/workflows/exp.yml
vendored
12
.github/workflows/exp.yml
vendored
|
@ -67,13 +67,13 @@ jobs:
|
||||||
echo "::error::Branch release/$HZVERSION does not exist"
|
echo "::error::Branch release/$HZVERSION does not exist"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
git tag --contains release/$HZVERSION
|
HZBRANCHSHA=$(git rev-parse release/$HZVERSION)
|
||||||
git log --graph --pretty=format':%h%%d %s %an, %ar' | head -n 5
|
HZPARENTSHA=$(git rev-parse $HZTAG^1)
|
||||||
if (git tag --contains release/$HZVERSION | grep -q $HZTAG); then
|
if [ "$HZBRANCHSHA" != "$HZPARENTSHA" ]; then
|
||||||
echo "Tag is in the correct branch"
|
echo "::error::Tag parent is not HEAD of release/$HZVERSION but $HZPARENTSHA"
|
||||||
else
|
|
||||||
echo "::error::Tag $HZTAG does not belong to branch release/$HZVERSION"
|
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Tag parent is HEAD of release/$HZVERSION, proceed"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user