Skip to content

Commit

Permalink
Create conda-lock.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Oct 7, 2024
1 parent 34f995e commit 308e743
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/conda-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: update conda lockfile
on:
push:
paths:
- .github/workflows/conda-lock.yaml
- environment.yml
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@main
- name: install conda-lock with micromamba
uses: mamba-org/setup-micromamba@main
with:
environment-name: locker
create-args: conda-lock
cache-environment: true
- name: run conda-lock
shell: bash -el {0}
run: |
conda-lock lock --mamba --file environment.yml --platform linux-64
- name: commit changes to tracked files
run: |
if [[ $(git ls-files --modified) ]]; then
git config --global user.name 'actions-bot'
git config --global user.email '[email protected]'
git commit --all --message "[bot] autogenerated conda-lock files"
git push
fi

0 comments on commit 308e743

Please sign in to comment.