Change JSON data passing method in workflow

This commit is contained in:
amd64fox 2025-11-18 05:39:35 +03:00 committed by GitHub
parent d4981cf75c
commit 4a0a7bb0de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,8 @@ jobs:
git checkout main
# Run Python script on fresh data
python3 update_version.py "$DATA_JSON" "$BUILD_TYPE"
# Передаём JSON через stdin (самый надёжный способ)
echo "$DATA_JSON" | python3 update_version.py "$BUILD_TYPE"
# Check if there are changes
if ! git diff --quiet versions.json; then