diff --git a/.github/workflows/build-ota-updates.yml b/.github/workflows/build-ota-updates.yml index e4a65d2205..1ba170a90e 100644 --- a/.github/workflows/build-ota-updates.yml +++ b/.github/workflows/build-ota-updates.yml @@ -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 @@ -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 'data=@ota-update.tar' -H "X-Api-Key: ${{secrets.OTA_API_KEY}}" "${{secrets.OTA_UPLOAD_ENDPOINT}}?version=${VERSION}"