|
3 | 3 | pull_request: |
4 | 4 |
|
5 | 5 | jobs: |
6 | | - Run_Configuration: |
7 | | - runs-on: ubuntu-24.04 |
8 | | - outputs: |
9 | | - NRF_revision: ${{ steps.config.outputs.NRF_revision }} |
10 | | - steps: |
11 | | - - name: Read body of PR |
12 | | - env: |
13 | | - GH_TOKEN: ${{ github.token }} |
14 | | - run: | |
15 | | - gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/${{github.repository}}/pulls/${{github.event.number}} --jq '.body' > pr_body.md |
16 | | -
|
17 | | - - uses: actions/setup-python@v5 |
18 | | - with: |
19 | | - python-version: '3.9' |
20 | | - |
21 | | - - name: install yq |
22 | | - run: pip install yq |
23 | | - |
24 | | - - name: Get configuration |
25 | | - id: config |
26 | | - shell: bash {0} |
27 | | - run: | |
28 | | - csplit pr_body.md /\`\`\`yaml/1 |
29 | | - csplit xx01 /\`\`\`/ |
30 | | - mv xx00 configuration.yaml |
31 | | - cat configuration.yaml |
32 | | - revision=$(yq '.Github_actions.NRF_revision' configuration.yaml) |
33 | | - if [ $? != 0 ]; then |
34 | | - echo "Failed to read configuration use default main for NRF_revision" |
35 | | - echo "NRF_revision=main" >> $GITHUB_OUTPUT; |
36 | | - else |
37 | | - echo "NRF_revision=$revision" >> $GITHUB_OUTPUT; |
38 | | - fi; |
39 | | -
|
40 | | - - name: print nrf revision |
41 | | - run: | |
42 | | - echo ${{ steps.config.outputs.NRF_revision }} |
43 | 6 |
|
44 | 7 | verify_PR: |
45 | 8 | uses: ./.github/workflows/validate_code_style.yml |
@@ -82,15 +45,13 @@ jobs: |
82 | 45 | echo "$result" |
83 | 46 |
|
84 | 47 | build_samples: |
85 | | - needs: [Run_Configuration, discover_target_boards] |
| 48 | + needs: [discover_target_boards] |
86 | 49 | uses: ./.github/workflows/samples_build.yml |
87 | 50 | with: |
88 | | - nrf_revision: ${{needs.Run_Configuration.outputs.NRF_revision}} |
89 | 51 | boards_to_test: ${{needs.discover_target_boards.outputs.targets}} |
90 | 52 |
|
91 | 53 | build_and_run_tests: |
92 | | - needs: [Run_Configuration, discover_target_boards] |
| 54 | + needs: [discover_target_boards] |
93 | 55 | uses: ./.github/workflows/run_tests.yml |
94 | 56 | with: |
95 | | - nrf_revision: ${{needs.Run_Configuration.outputs.NRF_revision}} |
96 | 57 | boards_to_test: ${{needs.discover_target_boards.outputs.targets}} |
0 commit comments