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: |
echo "SDK_VER=$(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)" >> $GITHUB_ENV
echo $SDK_VER
- name: Get current Memfault MCU SDK version
run: |
REPO_SDK_VER=$(yq ".manifest.projects[1].revision" west.yml)
echo $REPO_SDK_VER
- name: Echo SDK Version
run: |
echo ${{ env.SDK_VER }}
- name: Echo SDK Version
run: |
echo ${{ env.REPO_SDK_VER }}