Skip to content

Commit 040992b

Browse files
Fixup
1 parent 50e9cee commit 040992b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ jobs:
204204
- name: Collect dependencies
205205
shell: cmd
206206
run: |
207-
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "{{ env.VER_SCRIPT1 }} {{ env.VER_SCRIPT2 }}"`) DO (
207+
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
208+
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
208209
SET PACKAGE_VERSION=%%F
209210
)
210211
conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }}} python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
@@ -223,7 +224,8 @@ jobs:
223224
run: conda install opencl_rt -c intel --override-channels
224225
- name: Install dpctl
225226
run: |
226-
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "{{ env.VER_SCRIPT1 }} {{ env.VER_SCRIPT2 }}"`) DO (
227+
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
228+
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
227229
SET PACKAGE_VERSION=%%F
228230
)
229231
conda install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}

0 commit comments

Comments
 (0)