Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Nov 1, 2023
1 parent ee7f34f commit f7472b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: Install GNU gettext
run: sudo apt-get install gettext
Expand All @@ -23,6 +25,7 @@ jobs:

- name: Upload OTA updates
run: |
VERSION=$(git describe --tags --match 'v*' | gsed -e 's/v\([0-9]\+\)\.\([0-9]\+\).*/\1.\2/g')
git fetch --tags
VERSION=$(git describe --tags --match 'v*' | sed -e 's/v\([0-9]\+\)\.\([0-9]\+\).*/\1.\2/g')
echo "ota version: $VERSION"
curl -F '[email protected]' -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{secrets.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}"

0 comments on commit f7472b0

Please sign in to comment.