Skip to content
name: Update application with latest Memfault Firmware SDK
run-name: ${{ inputs.run_name }}
env:
DEFAULT_PYTHON: 3.8
SDK_VER: # empty
on:
push:
branches:
- gminn/pull-latest-memfault-sdk
schedule:
- cron: "8 0 * * *"
workflow_dispatch:
inputs:
run_name:
description: 'Name of run to identify it from other runs'
required: false
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install needed packages
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y -qq \
curl \
ripgrep
- name: Get latest Memfault MCU SDK version
run: |
rg 'VERSION:\s(\d+\.\d+\.\d+)' \
<(curl -sSL 'https://raw.githubusercontent.com/memfault/memfault-firmware-sdk/master/VERSION') -r '$1' --no-filename --no-line-number > version.txt
SDK_VER=$(cat version.txt)
echo $SDK_VER
- name: Echo SDK Version
run: |
echo $SDK_VER