Skip to content

Commit 078326a

Browse files
Fixed syntax for branching
1 parent fba8537 commit 078326a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/conda-package.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,16 @@ jobs:
210210
- name: Dump dpctl version info from created channel
211211
shell: cmd /C CALL {0}
212212
run: |
213-
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json
214213
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
215-
dir ${{ env.workdir }}
216214
type ${{ env.workdir }}\ver.json
217215
- name: Collect dependencies
218216
shell: cmd /C CALL {0}
219217
run: |
220-
@ECHO ON
221-
if not exist ver.json (
218+
DIR ${{ env.workdir }}
219+
IF NOT EXIST ver.json (
222220
copy /Y ${{ env.workdir }}\ver.json .
223221
)
224-
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
222+
SET "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
225223
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
226224
SET PACKAGE_VERSION=%%F
227225
)

0 commit comments

Comments
 (0)