Skip to content

Commit

Permalink
Define git clone location
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed Dec 3, 2024
1 parent 61e087c commit 1c81d2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
echo "Source branch name: ${{ github.head_ref }}"
echo "Target branch name: ${{ github.base_ref }}"
git clone --depth 1 -b " ${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
git clone --depth 1 -b " ${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
- name: Build a package
run: source scripts/build.sh
- name: Saving all wheels
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
run: |
echo "Source branch name: ${{ github.head_ref }}"
echo "Target branch name: ${{ github.base_ref }}"
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
- name: Setup Environment variables
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
- name: Download a wheel accordingly to matrix
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
run: |
echo "Source branch name: ${{ github.head_ref }}"
echo "Target branch name: ${{ github.base_ref }}"
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels_linux_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
echo "Source branch name: ${{ github.head_ref }}"
echo "Target branch name: ${{ github.base_ref }}"
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
git clone --depth 1 -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
- name: Build a package
run: source scripts/build.sh
- name: Saving all wheels
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
run: |
echo "Source branch name: ${{ github.head_ref }}"
echo "Target branch name: ${{ github.base_ref }}"
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}"
git clone --depth 1 --recurse-submodules -b "${{ github.head_ref }}" "https://github.com/${{ github.event.pull_request.head.repo.full_name }}" "${{ github.workspace }}"
- name: Setup Environment variables
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
- name: Download a wheel accordingly to matrix
Expand Down

0 comments on commit 1c81d2a

Please sign in to comment.