2828 version :
2929 description : The version of the firmware built on this run_id
3030 value : ${{ jobs.build.outputs.version }}
31+ ncsupdate_pr :
32+ description : Pull request id for west ncs pointer
33+ value : ${{ jobs.build.outputs.ncsupdate_pr }}
3134
3235 pull_request :
3336 paths-ignore :
4750 outputs :
4851 run_id : ${{ github.run_id }}
4952 version : ${{ env.VERSION }}
53+ ncsupdate_pr : ${{ steps.pr.outputs.pull-request-number }}
5054 permissions :
5155 contents : write
5256 pull-requests : write
7882 - name : Install dependencies
7983 run : |
8084 pip install -r nrf/scripts/requirements-build.txt
81- apt update
82- apt install -y --no-install-recommends gh
83-
8485 rm -rf artifacts
8586 mkdir -p artifacts
8687
@@ -117,7 +118,8 @@ jobs:
117118
118119 # Asset Tracker Template firmware build
119120 - name : Build thingy91x firmware
120- uses : ./asset-tracker-template/.github/actions/build-step
121+ # uses: ./asset-tracker-template/.github/actions/build-step
122+ uses : jorgenmk/build@v1
121123 with :
122124 memfault_project_key : ${{ secrets.MEMFAULT_PROJECT_KEY }}
123125 memfault_fw_type : ${{ inputs.memfault_fw_type }}
@@ -132,7 +134,7 @@ jobs:
132134 uses : ./asset-tracker-template/.github/actions/build-step
133135 with :
134136 memfault_project_key : ${{ secrets.MEMFAULT_PROJECT_KEY }}
135- memfault_fw_type : ${{ inputs.memfault_fw_type }}
137+ memfault_fw_type : ${{ inputs.memfault_fw_type }}
136138 memfault_fw_version_prefix : ${{ env.MEMFAULT_FW_VERSION_PREFIX }}
137139 board : nrf9151dk/nrf9151/ns
138140 short_board : nrf9151dk
@@ -145,13 +147,13 @@ jobs:
145147 uses : ./asset-tracker-template/.github/actions/build-step
146148 with :
147149 memfault_project_key : ${{ secrets.MEMFAULT_PROJECT_KEY }}
148- memfault_fw_type : ${{ inputs.memfault_fw_type }}
150+ memfault_fw_type : ${{ inputs.memfault_fw_type }}
149151 memfault_fw_version_prefix : ${{ env.MEMFAULT_FW_VERSION_PREFIX }}
150152 board : nrf9151dk/nrf9151/ns
151153 short_board : nrf9151dk
152154 version : ${{ env.VERSION }}
153155 path : asset-tracker-template/app
154-
156+
155157 - name : Upload artifacts
156158 uses : actions/upload-artifact@v4
157159 with :
@@ -163,18 +165,18 @@ jobs:
163165 echo Run id: ${{ github.run_id }}
164166 echo Version: ${{ env.VERSION }}
165167
166- - name : Auto PR update NCS reference
168+ - name : Create update PR
167169 if : ${{ inputs.nrfsdk_sha_update }}
168- working-directory : asset-tracker-template
170+ uses : peter-evans/create-pull-request@v7
171+ id : pr
172+ with :
173+ path : asset-tracker-template
174+ add-paths : west.yml
175+ commit-message : " manifest: auto: Update nrf-sdk SHA"
176+ branch : nrf-manifest-auto-branch
177+ base : main
178+ title : " manifest: auto: Update nrf-sdk SHA"
179+
180+ - name : Check outputs
169181 run : |
170- git config user.name "github-actions[bot]"
171- git config user.email "github-actions[bot]@users.noreply.github.com"
172- git add west.yml
173- git commit -m "manifest: auto: Update nrf-sdk SHA"
174- git push origin HEAD:nrf-manifest-auto-branch --force
175- gh pr create --title "manifest: auto: Update nrf-sdk SHA" \
176- --body "Created by GitHub Action" \
177- --base main \
178- --head nrf-manifest-auto-branch || true
179- env :
180- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
182+ echo PR created: ${{ steps.pr.outputs.pull-request-number }}
0 commit comments