diff --git a/.github/workflows/pip-requirements.yml b/.github/workflows/pip-requirements.yml index 396542c02d..cdacb9b20a 100644 --- a/.github/workflows/pip-requirements.yml +++ b/.github/workflows/pip-requirements.yml @@ -12,6 +12,22 @@ jobs: 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: Checkout uses: actions/checkout@v3 with: diff --git a/scripts/requirements-extra.txt b/scripts/requirements-extra.txt index 6ba7fa91a9..cb6b42166e 100644 --- a/scripts/requirements-extra.txt +++ b/scripts/requirements-extra.txt @@ -1,4 +1,4 @@ pygit2<=1.10 editdistance>=0.5.0 -PyGithub==1.59.1 +PyGithub==1.59.0 zcbor>=0.5.1