Skip to content

Generate conda-lock file #39

Generate conda-lock file

Generate conda-lock file #39

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: ${{ steps.branch_name.outputs.name }}-conda-lock
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Update conda-lock.yml of `${{ steps.branch_name.outputs.name) }}`

Check failure on line 35 in .github/workflows/conda_lock.yml

View workflow run for this annotation

GitHub Actions / Generate conda-lock file

Invalid workflow file

The workflow is not valid. .github/workflows/conda_lock.yml (Line: 35, Col: 18): Unexpected symbol: ')'. Located at position 31 within expression: steps.branch_name.outputs.name)
commiter: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit-message: "Update conda-lock.yml"