Обновить .woodpecker/.woodpecker.yml

This commit is contained in:
parent 8043eef048
commit 0af7608d0c

View file

@ -116,7 +116,7 @@ steps:
DEB_PATH=$(find .. -maxdepth 1 -type f -name "gonets_*_amd64.deb" | head -n 1) DEB_PATH=$(find .. -maxdepth 1 -type f -name "gonets_*_amd64.deb" | head -n 1)
if [ ! -f "$DEB_PATH" ]; then if [ ! -f "$DEB_PATH" ]; then
echo "❌ .deb файл не найден по пути: $DEB_PATH" echo ".deb файл не найден по пути: $DEB_PATH"
exit 1 exit 1
fi fi
@ -128,7 +128,7 @@ steps:
RELEASE_ID=$(echo "$RELEASE_JSON" | grep '"id":' | head -n1 | sed 's/[^0-9]*\([0-9]*\).*/\1/') RELEASE_ID=$(echo "$RELEASE_JSON" | grep '"id":' | head -n1 | sed 's/[^0-9]*\([0-9]*\).*/\1/')
if [ -z "$RELEASE_ID" ]; then if [ -z "$RELEASE_ID" ]; then
echo "❌ Не удалось получить ID релиза из ответа:" echo "Не удалось получить ID релиза из ответа:"
echo "$RELEASE_JSON" echo "$RELEASE_JSON"
exit 1 exit 1
fi fi
@ -136,4 +136,4 @@ steps:
curl -s -X POST \ curl -s -X POST \
-H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \ -H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \
-F "attachment=@$DEB_PATH" \ -F "attachment=@$DEB_PATH" \
"https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases/$RELEASE_ID/assets" || echo "❌ Ошибка загрузки файла" "https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases/$RELEASE_ID/assets" || echo "Ошибка загрузки файла"