Skip to content

Instantly share code, notes, and snippets.

@btashton
Created August 11, 2021 05:20
Show Gist options
  • Save btashton/de1c633c08bba159829c96b70eb411ff to your computer and use it in GitHub Desktop.
Save btashton/de1c633c08bba159829c96b70eb411ff to your computer and use it in GitHub Desktop.
Download Latest NuttX Builds
#!/bin/bash
set -x
# This uses the github cli to handle authenticated API calls
# https://cli.github.com/
gh auth refresh
RUN_ID=$(gh api repos/apache/incubator-nuttx/actions/workflows/908549/runs?branch=master --jq '.workflow_runs[0].id')
gh run download -R apache/incubator-nuttx -D nuttx-builds $RUN_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment