Skip to content

Commit

Permalink
GHA: Fix OTA translation updates after b0e9acd
Browse files Browse the repository at this point in the history
Fix and simplify version extraction after POEDIT_VERSION_SHORT was added
to src/version.h
  • Loading branch information
vslavik committed Sep 30, 2024
1 parent 3261649 commit 70ce7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: scripts/build-ota-translations.sh
- name: Upload OTA updates
run: |
VERSION=$(sed -n -e 's/.*POEDIT_VERSION.* "\([0-9]*\)\.\([0-9]*\).*".*/\1.\2/p' src/version.h)
VERSION=$(sed -n -e 's/.*POEDIT_VERSION_SHORT.* "\(.*\)".*/\1/p' src/version.h)
echo "OTA version: $VERSION"
curl --fail-with-body -F "version=$VERSION" -F "[email protected]" -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" ${{vars.OTA_UPLOAD_ENDPOINT}} >response
cat response
Expand Down

0 comments on commit 70ce7bf

Please sign in to comment.