1
0
This commit is contained in:
Stephan 2021-06-04 12:21:33 +02:00
parent d8676bfa36
commit 56c654ac50

View File

@ -37,11 +37,11 @@ jobs:
VERSION=${BRANCH#release/}
if [ "$VERSION" != "$BRANCH" ]; then
echo "Triggered by commit in version $VERSION release branch $BRANCH"
git fetch origin wip-$VERSION:wip-$VERSION
git fetch origin refs/tags/v$VERSION:refs/tags/v$VERSION
if [ $? -ne 0 ]; then
echo "Tag v$VERSION does not exist"
else
TAGSHA=$(git rev-parse wip-$VERSION)
TAGSHA=$(git rev-parse v$VERSION)
echo "FOUND TAG $TAGSHA"
if [ "$TAGSHA" != "${{ github.sha }}" ]; then
echo "TAG v$VERSION exists on another commit : error"