This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update application with latest Memfault Firmware SDK | |
run-name: ${{ inputs.run_name }} | |
env: | |
DEFAULT_PYTHON: 3.8 | |
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: | | |
apt-get update -qq && \ | |
DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install --no-install-recommends -y -qq \ | |
curl \ | |
ripgrep | |
- name: Get latest Memfault MCU SDK version | |
run: | | |
curl -sSL 'https://raw.githubusercontent.com/memfault/memfault-firmware-sdk/master/VERSION' > output.txt | |
rg 'VERSION:\s(\d+\.\d+\.\d+)' output.txt -r '$1' --no-filename --no-line-number > version.txt | |
SDK_VER=$(cat version.txt) | |
- name: Echo SDK Version | |
run: | | |
echo $SDK_VER |