Skip to content

Commit

Permalink
Merge pull request #17 from nmfs-opensci/eeholmes-patch-3
Browse files Browse the repository at this point in the history
Create conda-lock.yaml
  • Loading branch information
eeholmes authored Oct 7, 2024
2 parents 34f995e + 308e743 commit bc32a13
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 bc32a13

Please sign in to comment.