Skip to content

Commit

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

0 comments on commit 1727b79

Please sign in to comment.