Skip to content

Commit

Permalink
GHA: debug curl
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Sep 27, 2024
1 parent ed330ee commit dc88cf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ 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 '[email protected]' -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{secrets.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}" | tee response
echo curl --fail-with-body -F "[email protected]" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{secrets.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}"
curl --fail-with-body -F "[email protected]" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{secrets.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}" >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 dc88cf4

Please sign in to comment.