Skip to content

Commit

Permalink
ci: Output lock file to the directory
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Aug 8, 2024
1 parent dcdbf47 commit cbd6110
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/wave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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

0 comments on commit cbd6110

Please sign in to comment.