Skip to content

Commit

Permalink
GHA: Log updated translations in the OTA action
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Jul 18, 2024
1 parent a8acd80 commit 1191dc7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ 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}"
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
modified=$(jq '.modified[]' < response)
if [ -n "$modified" ] ; then
echo "::notice title=Translations updated::Updated translation files: $modified"
else
echo "::notice title=No updates::No translations were updated."
fi

0 comments on commit 1191dc7

Please sign in to comment.