forked from nrfconnect/sdk-nrf-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cabde1
commit dfb156f
Showing
1 changed file
with
13 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,30 +4,25 @@ on: | |
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- main-new-new | ||
- main | ||
- 'v*-branch' | ||
paths: | ||
- 'scripts/requirements*.txt' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Determine PR Origin | ||
id: pr-origin | ||
run: | | ||
echo "PR owner: ${{ github.event.pull_request.head.repo.owner.login }}" | ||
echo "PR repo name: ${{ github.event.pull_request.head.repo.name }}" | ||
echo "::set-output name=pr_owner::${{ github.event.pull_request.head.repo.owner.login }}" | ||
echo "::set-output name=pr_repo_name::${{ github.event.pull_request.head.repo.name }}" | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: refs/pull/${{ github.event.pull_request.number }}/head | ||
repository: ${{ steps.pr-origin.outputs.pr_owner }}/${{ steps.pr-origin.outputs.pr_repo_name }} | ||
path: ncs/nrf | ||
fetch-depth: 0 | ||
|
||
- name: Determine PR Origin | ||
id: pr-origin | ||
run: | | ||
echo "PR owner: ${{ github.event.pull_request.head.repo.owner.login }}" | ||
echo "PR repo name: ${{ github.event.pull_request.head.repo.name }}" | ||
echo "::set-output name=pr_owner::${{ github.event.pull_request.head.repo.owner.login }}" | ||
echo "::set-output name=pr_repo_name::${{ github.event.pull_request.head.repo.name }}" | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -38,7 +33,7 @@ jobs: | |
- name: Get python version | ||
id: pyv | ||
run: | | ||
sudo snap install yq | ||
sudo snap install --channel=v4 yq | ||
PYTHON_VERSION=$(yq '.python.version' ./ncs/nrf/scripts/tools-versions-linux.yml) | ||
echo "python_version=$PYTHON_VERSION" >> $GITHUB_OUTPUT | ||
|
@@ -95,7 +90,7 @@ jobs: | |
Signed-off-by: Nordic Builder <[email protected]> | ||
EOF | ||
git remote set-url origin https://${{ secrets.NCS_GITHUB_TOKEN }}@github.com/nrfconnect/sdk-nrf-testing.git | ||
git remote set-url origin https://${{ secrets.NCS_GITHUB_TOKEN }}@github.com/${{ steps.pr-origin.outputs.pr_repo_name }}/sdk-nrf-testing.git | ||
git push origin HEAD:${{ github.head_ref }} | ||
- name: Post summary | ||
|