Skip to content

Commit

Permalink
OTA CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Nov 1, 2023
1 parent 5fe7397 commit 338561a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-ota-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build OTA translation updates

on:
workflow_dispatch:
schedule:
# Every day at 10:11 UTC
- cron: '11 10 * * *'

jobs:
check-po-validity:
name: Check translations
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build OTA updates
run: scripts/build-ota-translations.sh

- name: Upload OTA updates
run: |
VERSION=$(git describe --tags --match 'v*' | gsed -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 338561a

Please sign in to comment.