Skip to content

Commit

Permalink
fix2
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie committed Feb 13, 2025
1 parent f8f93c1 commit 43ad1bf
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,19 @@ jobs:
if: github.event_name == 'pull_request'
run: |
PR_DESCRIPTION=$(jq -r '.pull_request.body' $GITHUB_EVENT_PATH)
echo PR_DESCRIPTION:
echo $PR_DESCRIPTION
NCS_PR_ID=$(echo $PR_DESCRIPTION | grep '^[^>]' | grep 'NCS PR' | sed 's/.*nrfconnect\/sdk-nrf//' | grep -oE '[0-9]+')
echo NCS_PR_ID:
echo $NCS_PR_ID
if [ -n "$NCS_PR_ID" ]; then
echo "Using NCS from pull/$NCS_PR_ID/head"
git -C $ZEPHYR_BASE/../nrf fetch origin pull/$NCS_PR_ID/head:NCS_PR
echo NCS_PR > config/nrfconnect/.nrfconnect-recommended-revision
else
echo "Using NCS from $(cat config/nrfconnect/.nrfconnect-recommended-revision)"
if [ -z "$PR_DESCRIPTION" ]; then
echo PR_DESCRIPTION:
echo $PR_DESCRIPTION
NCS_PR_ID=$(echo $PR_DESCRIPTION | grep '^[^>]' | grep 'NCS PR' | sed 's/.*nrfconnect\/sdk-nrf//' | grep -oE '[0-9]+')
echo NCS_PR_ID:
echo $NCS_PR_ID
if [ -n "$NCS_PR_ID" ]; then
echo "Using NCS from pull/$NCS_PR_ID/head"
git -C $ZEPHYR_BASE/../nrf fetch origin pull/$NCS_PR_ID/head:NCS_PR
echo NCS_PR > config/nrfconnect/.nrfconnect-recommended-revision
else
echo "Using NCS from $(cat config/nrfconnect/.nrfconnect-recommended-revision)"
fi
fi
- name: Check nRF Connect SDK revision.
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --update"
Expand Down

0 comments on commit 43ad1bf

Please sign in to comment.