Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1015627822 | |||
| 8f1fc80835 |
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -171,21 +171,24 @@ jobs:
|
|||||||
json.dump(payload, handle, ensure_ascii=False)
|
json.dump(payload, handle, ensure_ascii=False)
|
||||||
PY
|
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 "Authorization: token $RELEASE_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @release.json)
|
-d @release.json \
|
||||||
|
-o release-response.json
|
||||||
|
|
||||||
RELEASE_ID=$(python3 - <<'PY'
|
RELEASE_ID=$(python3 - <<'PY'
|
||||||
import json
|
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', ''))
|
print(data.get('id', ''))
|
||||||
PY
|
PY
|
||||||
<<< "$RESPONSE")
|
)
|
||||||
|
|
||||||
if [ -z "$RELEASE_ID" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: SitiAI Product Teksten
|
* Plugin Name: SitiAI Product Teksten
|
||||||
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
|
* Description: Genereer productteksten met diverse AI-aanbieders rechtstreeks vanuit WooCommerce.
|
||||||
* Version: 1.9.1
|
* Version: 1.9.2
|
||||||
* Author: Roberto Guagliardo | SitiWeb
|
* Author: Roberto Guagliardo | SitiWeb
|
||||||
* Author URI: https://sitiweb.nl/
|
* Author URI: https://sitiweb.nl/
|
||||||
* Text Domain: siti-ai-product-content-generator
|
* Text Domain: siti-ai-product-content-generator
|
||||||
|
|||||||
Reference in New Issue
Block a user