Skip to content

Generate conda-lock file #37

Generate conda-lock file

Generate conda-lock file #37

Workflow file for this run

name: Generate conda-lock file
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install conda-lock with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: ci
create-args: conda-lock
init-shell: bash
- name: Run conda-lock
run: conda-lock --mamba -f environment.yml -p osx-64 -p linux-64 -p win-64 --lockfile conda-lock.yml
shell: bash -el {0}
- name: Get branch name
id: branch_name
run: |
GITHUB_REF=$(echo $GITHUB_REF | sed -e "s#refs/heads/##g")
echo "name=$GITHUB_REF" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: conda-lock.yml
branch: ${{ format('{0}-conda-lock', steps.branch_name.outputs.name) }}