Skip to content

Commit 255564a

Browse files
authored
Merge pull request #1076 from asmorkalov:as/github_checkout_again
Reverted back to Github actions checkout as self-made command does not handle releases
2 parents 26c8b4e + 2817208 commit 255564a

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/build_wheels_linux.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
5959
fi
6060
- name: Checkout
61-
run: |
62-
echo "Source branch name: ${{ github.head_ref }}"
63-
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 }}" "${{ github.workspace }}"
61+
uses: actions/checkout@v3
62+
with:
63+
submodules: false
64+
fetch-depth: 0
6565
- name: Build a package
6666
run: source scripts/build.sh
6767
- name: Saving all wheels
@@ -101,10 +101,10 @@ jobs:
101101
run: find . -mindepth 1 -delete
102102
working-directory: ${{ github.workspace }}
103103
- name: Checkout
104-
run: |
105-
echo "Source branch name: ${{ github.head_ref }}"
106-
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 }}" "${{ github.workspace }}"
104+
uses: actions/checkout@v3
105+
with:
106+
submodules: true
107+
fetch-depth: 0
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 }}" -o "3.13" == "${{ 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
@@ -155,10 +155,10 @@ jobs:
155155
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
156156
fi
157157
- name: Checkout
158-
run: |
159-
echo "Source branch name: ${{ github.head_ref }}"
160-
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 }}" "${{ github.workspace }}"
158+
uses: actions/checkout@v3
159+
with:
160+
submodules: false
161+
fetch-depth: 0
162162
- name: Set up Python ${{ matrix.python-version }}
163163
uses: actions/setup-python@v4
164164
with:

.github/workflows/build_wheels_linux_arm.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
5959
fi
6060
- name: Checkout
61-
run: |
62-
echo "Source branch name: ${{ github.head_ref }}"
63-
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 }}" "${{ github.workspace }}"
61+
uses: actions/checkout@v3
62+
with:
63+
submodules: false
64+
fetch-depth: 0
6565
- name: Build a package
6666
run: source scripts/build.sh
6767
- name: Saving all wheels
@@ -103,10 +103,10 @@ jobs:
103103
run: find . -mindepth 1 -delete
104104
working-directory: ${{ github.workspace }}
105105
- name: Checkout
106-
run: |
107-
echo "Source branch name: ${{ github.head_ref }}"
108-
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 }}" "${{ github.workspace }}"
106+
uses: actions/checkout@v3
107+
with:
108+
submodules: true
109+
fetch-depth: 0
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 }}" -o "3.13" == "${{ 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)