diff --git a/.github/workflows/wave.yml b/.github/workflows/wave.yml index 92c3ce367223..084f0f77701a 100644 --- a/.github/workflows/wave.yml +++ b/.github/workflows/wave.yml @@ -58,10 +58,18 @@ jobs: conda-lock mamba + - name: Get the lock file path + uses: actions/github-script@v7 + id: lockfile-name + with: + result-encoding: string + script: | + return '${{ matrix.files }}'.replace('/environment.yml', '/conda-lock.yml'); + - name: Run conda-lock run: | - rm --force conda-lock.yml - conda-lock lock $MAMBA --file "${{ matrix.files }}" --kind lock --platform linux-64 + rm --force "${{steps.lockfile-name.outputs.result}}" + conda-lock lock $MAMBA --file "${{ matrix.files }}" --kind lock --platform linux-64 --lockfile "${{steps.lockfile-name.outputs.result}}" env: MAMBA: "--mamba" shell: bash -l {0} @@ -76,12 +84,4 @@ jobs: git commit -m "[automated] autogenerated conda-lock file" git push - - name: Get the lock file path - uses: actions/github-script@v7 - id: lockfile-name - with: - result-encoding: string - script: | - return '${{ matrix.files }}'.replace('/environment.yml', '/conda-lock.yml'); - # TODO Build containers with Wave