NRF upmerge #29
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
name: NRF upmerge | |
on: | |
schedule: | |
- cron: "0 1 * * 0" | |
workflow_dispatch: | |
jobs: | |
change_nrf_revision: | |
name: Create PR with NRF upmerge | |
runs-on: ubuntu-latest | |
env: | |
CI_COMMIT_AUTHOR: Continuous Integration | |
steps: | |
- name: Checkout sidewalk | |
uses: actions/checkout@v3 | |
with: | |
path: sidewalk | |
ref: main | |
- name: Checkout nrf | |
uses: actions/checkout@v3 | |
with: | |
repository: nrfconnect/sdk-nrf | |
path: nrf | |
ref: main | |
fetch-depth: 0 | |
- name: Change nrf revision | |
run: | | |
python3 -m pip install -r sidewalk/scripts/ci/requirements.txt | |
nrf_hash="$(git -C nrf rev-parse HEAD)" | |
python3 sidewalk/scripts/ci/replace_nrf_revision_in_west.py -r $nrf_hash sidewalk/internal_west.yml | |
- name: Update nrf links in doc | |
shell: bash | |
env: | |
ZEPHYR_BASE: ./zephyr | |
run: | | |
mkdir -p $ZEPHYR_BASE | |
sidewalk/doc/update_ncs_links.sh > sidewalk/doc/ncs_links.rst | |
cat sidewalk/doc/ncs_links.rst | |
- name: Get Date | |
id: date | |
run: | | |
echo "date=$(date +%Y_%d_%m)" >> $GITHUB_OUTPUT | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{secrets.NCS_GITHUB_TOKEN}} | |
path: sidewalk | |
commit-message: "NRF: upmerge\n\nupdate nrf revision in internal_west.yml" | |
title: "NRF upmerge ${{steps.date.outputs.date}}" | |
body: "PR created automatically by GitHub actions to change revision of NRF in internal_west.yml" | |
delete-branch: true | |
branch: nrf_upmerge-${{steps.date.outputs.date}} | |
signoff: true | |
committer: Sidewalk Team <[email protected]> | |
author: Sidewalk Team <[email protected]> | |
labels: func-commit |