Skip to content

Commit a5bb4d1

Browse files
committed
Define git clone location
1 parent 61e087c commit a5bb4d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build_wheels_linux.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: |
6262
echo "Source branch name: ${{ github.head_ref }}"
6363
echo "Target branch name: ${{ github.base_ref }}"
64-
git clone --depth 1 -b " ${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
64+
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
6565
- name: Build a package
6666
run: source scripts/build.sh
6767
- name: Saving all wheels
@@ -104,7 +104,7 @@ jobs:
104104
run: |
105105
echo "Source branch name: ${{ github.head_ref }}"
106106
echo "Target branch name: ${{ github.base_ref }}"
107-
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
107+
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
108108
- name: Setup Environment variables
109109
run: if [ "3.10" == "${{ matrix.python-version }}" -o "3.11" == "${{ matrix.python-version }}" -o "3.12" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
110110
- name: Download a wheel accordingly to matrix
@@ -158,7 +158,7 @@ jobs:
158158
run: |
159159
echo "Source branch name: ${{ github.head_ref }}"
160160
echo "Target branch name: ${{ github.base_ref }}"
161-
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
161+
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
162162
- name: Set up Python ${{ matrix.python-version }}
163163
uses: actions/setup-python@v4
164164
with:

.github/workflows/build_wheels_linux_arm.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: |
6262
echo "Source branch name: ${{ github.head_ref }}"
6363
echo "Target branch name: ${{ github.base_ref }}"
64-
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
64+
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
6565
- name: Build a package
6666
run: source scripts/build.sh
6767
- name: Saving all wheels
@@ -106,7 +106,7 @@ jobs:
106106
run: |
107107
echo "Source branch name: ${{ github.head_ref }}"
108108
echo "Target branch name: ${{ github.base_ref }}"
109-
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
109+
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
110110
- name: Setup Environment variables
111111
run: if [ "3.10" == "${{ matrix.python-version }}" -o "3.11" == "${{ matrix.python-version }}" -o "3.12" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
112112
- name: Download a wheel accordingly to matrix

0 commit comments

Comments
 (0)