Increase MAX_RETRIES and update JSON handling

This commit is contained in:
amd64fox 2025-11-18 05:51:09 +03:00 committed by GitHub
parent 820937d353
commit 549117406c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
MAX_RETRIES=20
MAX_RETRIES=20 # Увеличено с 10 до 20
RETRY_COUNT=0
# Случайная задержка 0-10 секунд в начале
@ -60,9 +60,8 @@ jobs:
git checkout main
# Run Python script on fresh data
# Создаём временный файл для передачи JSON
echo "$DATA_JSON" > /tmp/data.json
python3 update_version.py /tmp/data.json "$BUILD_TYPE"
# Передаём через отдельную переменную окружения (обходим bash экранирование)
DATA_JSON_ENV="$DATA_JSON" python3 update_version.py "$BUILD_TYPE"
# Check if there are changes
if ! git diff --quiet versions.json; then