Skip to content

Commit

Permalink
GHA: fix OTA uploads curl command
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Sep 27, 2024
1 parent ed330ee commit 3261649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
run: |
VERSION=$(sed -n -e 's/.*POEDIT_VERSION.* "\([0-9]*\)\.\([0-9]*\).*".*/\1.\2/p' src/version.h)
echo "OTA version: $VERSION"
curl --fail-with-body -F 'data=@ota-update.tar' -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{secrets.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}" | tee 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
echo "::notice title=Translations updated::Updated translation files: $modified"
Expand Down

0 comments on commit 3261649

Please sign in to comment.