2 Commits

Author SHA1 Message Date
1015627822 chore: bump version to 1.9.2
All checks were successful
Build & Release Plugin / release (push) Successful in 10s
2026-02-01 01:23:38 +00:00
8f1fc80835 fix: update release workflow to handle API response and improve error reporting
All checks were successful
Build & Release Plugin / release (push) Successful in 4s
2026-02-01 01:22:50 +00:00
2 changed files with 10 additions and 7 deletions

View File

@@ -171,21 +171,24 @@ jobs:
json.dump(payload, handle, ensure_ascii=False)
PY
RESPONSE=$(curl -sS -X POST "$API_URL/repos/$REPO/releases" \
curl -sS -X POST "$API_URL/repos/$REPO/releases" \
-H "Authorization: token $RELEASE_TOKEN" \
-H "Content-Type: application/json" \
-d @release.json)
-d @release.json \
-o release-response.json
RELEASE_ID=$(python3 - <<'PY'
import json
import sys
data = json.loads(sys.stdin.read())
with open('release-response.json', 'r', encoding='utf-8') as handle:
data = json.load(handle)
print(data.get('id', ''))
PY
<<< "$RESPONSE")
)
if [ -z "$RELEASE_ID" ]; then
echo "::error::Kon release-ID niet bepalen. Response: $RESPONSE"
echo "::error::Kon release-ID niet bepalen. Response: $(cat release-response.json)"
exit 1
fi

View File

@@ -2,7 +2,7 @@
/**
* Plugin Name: SitiAI Product Teksten
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
* Version: 1.9.1
* Version: 1.9.2
* Author: Roberto Guagliardo | SitiWeb
* Author URI: https://sitiweb.nl/
* Text Domain: siti-ai-product-content-generator