Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gminn committed Mar 5, 2024
1 parent 7d657a9 commit bd7357d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/update-from-memfault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ 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:
Expand All @@ -17,22 +21,21 @@ jobs:
build:
runs-on: ubuntu-latest

# Image generated from: https://github.com/memfault/memfault-port-playground/tree/master/docker/nrf-connect-sdk
container:
image: memfault/nrf-connect-sdk:2024-01-05
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- 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: |
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)
echo $SDK_VER
- name: Echo SDK Version
run: |
Expand Down

0 comments on commit bd7357d

Please sign in to comment.