CI: upload assets with POST (overwrites) and correct content types
CI / validate-monitoring (push) Successful in 7s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 36s
CI / assets (push) Successful in 6s
CI / python-package (push) Successful in 11s
CI / images (push) Successful in 27s
CI / notify (push) Successful in 5s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
mattandClaude Opus 5.5 committed 2026-09-25 14:33:49 +01:00
1 parent a461fcdcef
commit 40f1974f3d
1 file changed
+3 -1
+3 -1
View File
@@ -137,9 +137,11 @@ jobs:
files="docs/openapi.json docker-compose.yml deploy/prometheus/prometheus.yml deploy/prometheus/alerts.yml
deploy/grafana/provisioning/datasources/prometheus.yml deploy/grafana/provisioning/dashboards/dashboards.yml
$(ls deploy/grafana/dashboards/*.json)"
# POST creates or overwrites (ProGet rejects PUT to an existing path).
for dir in $dirs; do
for file in $files; do
curl -fsS -X PUT -H "X-ApiKey: $API_KEY" --data-binary "@$file" "$BASE/$dir/$file"
case "$file" in *.json) type=application/json ;; *) type=application/yaml ;; esac
curl -fsS -X POST -H "X-ApiKey: $API_KEY" -H "Content-Type: $type" --data-binary "@$file" "$BASE/$dir/$file"
echo "uploaded $dir/$file"
done
done