You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
relock-conda
v5
GitHub action to relock conda environments using conda-lock
This action runs conda-lock to relock a conda environment and makes a PR
with the changes if any are found. By default, a PR is only made if a package listed in the input environment.yml
file is updated.
name: relock conda
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: test
steps:
- name: run
uses: beckermr/relock-conda@main
with:
# A GitHub personal access token is required
github-token: ${{ secrets.GITHUB_PAT }}
# files to relock w/ conda-lock
environment-file: environment.yml # default
lock-file: conda-lock.yml # default
# optional list of packages whose changes are ignore when relocking
ignored-packages: "" # default
# ignored-packages: "numpy,scipy"
# use only these packages to determine if a relock is needed
include-only-packages: "" # default
# include-only-packages: "numpy,scipy"
# whether to relock on an update to any package in the environment,
# not just those in the environment file
relock-all-packages: false # default
# action to take if we relock
# one of 'pr' (make a PR) or 'file' (leave new lock file in CWD)
action: 'pr' # default
# these options apply only if we are making PRs
# automerge the PR - you need to have GitHub automerge enabled
automerge: false # default
# use this setting to fix issues with the base branch not
# being inferred correctly
# See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#events-which-checkout-a-commit
base-branch: "" # default
# base-branch: blah
# the head branch for PRs
head-branch: relock-conda # default
# whether to skip relocking if a PR already exists
skip-if-pr-exists: false # default
# whether to open the PR as a draft
draft: false # default
See the action.yml for details on possible inputs and options.