Skip to content

Commit 846c831

Browse files
adigieArekBalysNordic
authored andcommitted
[nrf noup] Fix parsing PR description
Use `env` instead of assigning PR body to variable, as `` ` `` is interpreted as shell command substitution. Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent ded174b commit 846c831

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/examples-nrfconnect.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ jobs:
7777
echo "${{ github.event.inputs.ncs_revision }}" > config/nrfconnect/.nrfconnect-recommended-revision
7878
- name: Update NCS recommended version (pull_request)
7979
if: github.event_name == 'pull_request'
80+
env:
81+
PR_DESCRIPTION: "${{ github.event.pull_request.body }}"
8082
run: |
81-
PR_DESCRIPTION="${{ github.event.pull_request.body }}"
8283
if [ -n "$PR_DESCRIPTION" ]; then
8384
NCS_PR_ID=$(echo $PR_DESCRIPTION | { grep 'NCS PR' || true; } | sed 's/.*nrfconnect\/sdk-nrf//' | { grep -oE '[0-9]+' || true; })
8485
if [ -n "$NCS_PR_ID" ]; then

0 commit comments

Comments
 (0)