Skip to content

Commit

Permalink
next.update1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaci-nordic committed Sep 19, 2023
1 parent 9cabde1 commit dfb156f
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/pip-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dfb156f

Please sign in to comment.