From 0a5446da0ed7602ca1fc2153df99fa65fe637047 Mon Sep 17 00:00:00 2001 From: bakpaul Date: Sat, 12 Jul 2025 13:38:32 +0200 Subject: [PATCH] change notify step according to changes made to REST API of server --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b18a36f..bf5e72b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,12 +115,15 @@ jobs: [ '${{ steps.install-artifact.outcome }}' == 'success' ] && \ [ '${{ steps.sanitize.outcome }}' == 'success' ] && \ echo 'true' || echo 'false') + os=$(echo "${{ matrix.os }}" | awk -F- '{ print $1 }') + curl -X POST -H "X-API-KEY: $DASH_AUTH" -H "Content-Type: application/json" -d \ "{\"id\":\"$(echo "${{ github.repository }}" | awk -F/ '{ print $2 }')\",\ \"github_ref\":\"${{ github.sha }}\",\ \"url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\",\ + \"os\":\"$os\",\ \"build\":$build_status,\ \"binary\":$binary_status}"\ https://sofa-framework.org:5000/api/v1/plugins