-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (46 loc) · 1.38 KB
/
canary_ota.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Update ESP32 Canary OtaServiceConfig
on:
workflow_call:
inputs:
otaTag:
required: true
type: string
workflow_dispatch:
inputs:
otaTag:
description: 'OtaService Config Version tag'
required: true
type: string
default: "testing"
env:
ESP32_CANARY_ROBOT: ${{ secrets.ESP32_CANARY_ROBOT }}
ESP32_CANARY_ROBOT_PART_ID: ${{ secrets.ESP32_CANARY_ROBOT_PART_ID }}
ESP32_CANARY_API_KEY: ${{ secrets.ESP32_CANARY_API_KEY }}
ESP32_CANARY_API_KEY_ID: ${{ secrets.ESP32_CANARY_API_KEY_ID }}
ESP32_OTA_BINARY_NAME: ${{ vars.ESP32_OTA_BINARY_NAME }}
GCP_BUCKET_URL: ${{ secrets.GCP_BUCKET_URL }}
GCP_BUCKET_NAME: ${{ secrets.GCP_BUCKET_NAME }}
CANARY_SLACKBOT_TOKEN: ${{ secrets.CANARY_SLACKBOT_TOKEN }}
MICRO_RDK_TEAM_CHANNEL_ID: ${{ secrets.MICRO_RDK_TEAM_CHANNEL_ID }}
jobs:
update-canary-config:
runs-on: "ubuntu-latest"
defaults:
run:
working-directory: ./canary
shell: bash
env:
ESP32_CANARY_OTA_VERSION_TAG: ${{ inputs.otaTag }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Run Python Canary
run: |
python -m pip install -r requirements.txt
python canary_ota.py