Skip to content

Commit 81a9ef8

Browse files
Separate outputting ver.json into separate step
1 parent 0c749a8 commit 81a9ef8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/conda-package.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,12 @@ jobs:
207207
shell: cmd /C CALL {0}
208208
run: conda index ${{ env.workdir }}\channel
209209

210-
- name: Dump dpctl version info from created channel
210+
- name: Dump dpctl version info from created channel into ver.json
211211
shell: cmd /C CALL {0}
212212
run: |
213213
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
214-
type ${{ env.workdir }}\ver.json
214+
- name: Output content of produced ver.json
215+
run: Get-Content -Path ${{ env.workdir }}\ver.json
215216
- name: Collect dependencies
216217
shell: cmd /C CALL {0}
217218
run: |
@@ -224,10 +225,7 @@ jobs:
224225
)
225226
conda install ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
226227
- name: Display lockfile content
227-
shell: cmd /C CALL {0}
228-
run: |
229-
echo "Outputting content of lockfile:"
230-
type lockfile
228+
run: Get-Content -Path .\lockfile
231229
- name: Cache conda packages
232230
uses: actions/cache@v3
233231
env:

0 commit comments

Comments
 (0)