-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if configured, creation of PR in Sidewalk will trigger new PR in NRF. PR in NRF will keep track the state of the PR in Sidewalk. Remember to delete the PR in NRF if the PR gets closed without merging. Signed-off-by: Robert Gałat <[email protected]>
- Loading branch information
1 parent
78c79e7
commit fed2f4d
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: handle manifest PR | ||
on: | ||
pull_request_target: | ||
types: [opened, synchronize, closed] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create-manifest-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Read body of PR | ||
run: printf "%s\n" "${{ github.event.pull_request.body }}" > pr_body.md | ||
|
||
- name: Get nrf revision | ||
id: config | ||
shell: bash {0} | ||
run: | | ||
grep -oP "(Create_NRF_PR=)(true|false)" pr_body.md > config | ||
if [ $? != 0 ]; then | ||
echo "Create_NRF_PR=false" >> $GITHUB_OUTPUT; | ||
else | ||
cat config >> $GITHUB_OUTPUT; | ||
fi; | ||
- name: Create manifest PR | ||
if: ${{steps.config.outcome.Create_NRF_PR == 'true' }} | ||
uses: nrfconnect/action-manifest-pr@main | ||
with: | ||
token: ${{ secrets.NCS_GITHUB_TOKEN }} |