Skip to content

Commit 1365e49

Browse files
committed
Syntax fix.
1 parent 4f5eec9 commit 1365e49

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

.github/workflows/build_wheels_linux.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ jobs:
5959
fi
6060
- name: Checkout
6161
run: |
62-
echo "PR Author: ${{ env.PR_AUTHOR }}"
63-
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
64-
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
65-
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
66-
git clone --depth 1 -b "${{ env.SOURCE_BRANCH_NAME }}"
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 }}"
6765
- name: Build a package
6866
run: source scripts/build.sh
6967
- name: Saving all wheels
@@ -104,11 +102,9 @@ jobs:
104102
working-directory: ${{ github.workspace }}
105103
- name: Checkout
106104
run: |
107-
echo "PR Author: ${{ env.PR_AUTHOR }}"
108-
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
109-
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
110-
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
111-
git clone --depth 1 --recurse-submodules -b "${{ env.SOURCE_BRANCH_NAME }}"
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 }}"
112108
- name: Setup Environment variables
113109
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
114110
- name: Download a wheel accordingly to matrix
@@ -160,11 +156,9 @@ jobs:
160156
fi
161157
- name: Checkout
162158
run: |
163-
echo "PR Author: ${{ env.PR_AUTHOR }}"
164-
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
165-
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
166-
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
167-
git clone --depth 1 -b "${{ env.SOURCE_BRANCH_NAME }}"
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 }}"
168162
- name: Set up Python ${{ matrix.python-version }}
169163
uses: actions/setup-python@v4
170164
with:

.github/workflows/build_wheels_linux_arm.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ jobs:
5959
fi
6060
- name: Checkout
6161
run: |
62-
echo "PR Author: ${{ env.PR_AUTHOR }}"
63-
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
64-
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
65-
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
66-
git clone --depth 1 -b "${{ env.SOURCE_BRANCH_NAME }}"
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 }}"
6765
- name: Build a package
6866
run: source scripts/build.sh
6967
- name: Saving all wheels
@@ -106,11 +104,9 @@ jobs:
106104
working-directory: ${{ github.workspace }}
107105
- name: Checkout
108106
run: |
109-
echo "PR Author: ${{ env.PR_AUTHOR }}"
110-
echo "PR Author fork: ${{ env.PR_AUTHOR_FORK }}"
111-
echo "Source branch name: ${{ env.SOURCE_BRANCH_NAME }}"
112-
echo "Target branch name: ${{ env.TARGET_BRANCH_NAME }}"
113-
git clone --depth 1 --recurse-submodules -b "${{ env.SOURCE_BRANCH_NAME }}"
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 }}"
114110
- name: Setup Environment variables
115111
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
116112
- name: Download a wheel accordingly to matrix

0 commit comments

Comments
 (0)