From 1727b79ea78b5daa6e6dc010c05d5418dc5909e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Fri, 27 Sep 2024 20:07:58 +0200 Subject: [PATCH] version in post --- .github/workflows/build-ota-updates.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build-ota-updates.yml b/.github/workflows/build-ota-updates.yml index d114f94745..49b2d79db3 100644 --- a/.github/workflows/build-ota-updates.yml +++ b/.github/workflows/build-ota-updates.yml @@ -60,11 +60,9 @@ jobs: - name: Upload OTA updates run: | VERSION=$(sed -n -e 's/.*POEDIT_VERSION.* "\([0-9]*\)\.\([0-9]*\).*".*/\1.\2/p' src/version.h) - ENDPOINT="${{vars.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}" echo "OTA version: $VERSION" - echo "OTA endpoint: $ENDPOINT" curl --version - curl -v --trace -F "data=@ota-update.tar" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "$ENDPOINT" --fail-with-body >response + curl --fail-with-body -F "version=$VERSION" -F "data=@ota-update.tar" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" ${{vars.OTA_UPLOAD_ENDPOINT}} >response cat response modified=$(echo `jq -r '.modified[]' < response`) if [ -n "$modified" ] ; then