Skip to content

Commit e838d95

Browse files
Copy ver.json only if does not exist
1 parent 8eb1c72 commit e838d95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ jobs:
211211
shell: cmd /C CALL {0}
212212
run: |
213213
@ECHO ON
214-
copy /Y ${{ env.workdir }}\ver.json .
214+
if not exist ver.json (
215+
copy /Y ${{ env.workdir }}\ver.json .
216+
)
215217
set "SCRIPT=%VER_SCRIPT1% %VER_SCRIPT2%"
216218
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
217219
SET PACKAGE_VERSION=%%F

0 commit comments

Comments
 (0)