fix(ci): Actually exit with error when `manual-publish` runs from main. (#1998)

This commit is contained in:
Mikaël Ducharme 2024-05-27 13:08:39 -04:00 коммит произвёл GitHub
Родитель 0eff7b7ccc
Коммит 0b4755a383
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -281,7 +281,7 @@ jobs:
# Exit if the branch is main # Exit if the branch is main
if [ -z "$COMMIT_BRANCH" ]; then if [ -z "$COMMIT_BRANCH" ]; then
echo "This tag is associated with a main branch commit. Exiting." echo "This tag is associated with a main branch commit. Exiting."
exit 0 exit 1
else else
echo "This tag is not associated with a main branch commit. Proceeding." echo "This tag is not associated with a main branch commit. Proceeding."
fi fi