Skip to content

Commit

Permalink
ff
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Sep 27, 2024
1 parent ef3c919 commit 53fe9f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ 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
echo curl --fail-with-body -F "[email protected]" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{vars.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}" >xx
cat xx
curl -v --trace --fail-with-body -F "[email protected]" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" ${{vars.OTA_UPLOAD_ENDPOINT}} >response
curl -v --trace -F "[email protected]" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "$ENDPOINT" --fail-with-body >response
cat response
modified=$(echo `jq -r '.modified[]' < response`)
if [ -n "$modified" ] ; then
Expand Down

0 comments on commit 53fe9f2

Please sign in to comment.