Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,27 @@ on:
- '!ci/environment.yml'
- '.github/workflows/build.yml'

workflow_run:
workflows: ["update conda lockfile"]
types:
- completed
pull_request:
branches:
- main
- dev
paths:
# build if anything in ci/ changes except only environment.yml because
# environment-lock.yml needs to be built first by create-conda-lock.yml
- 'ci/**'
- '!ci/environment.yml'
- '.github/workflows/build.yml'

workflow_dispatch:

jobs:
build-and-push-docker:
if: ${{ github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'}}
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: "Set Job Environment Variables"
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/create-conda-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@main
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: install conda-lock with micromamba
uses: mamba-org/setup-micromamba@main
with:
Expand All @@ -40,7 +42,7 @@ jobs:
run: |
if [[ $(git ls-files --modified) ]]; then
git config --global user.name 'ateucher'
git config --global user.email 'andy.teucher@gmail.com'
git config --global user.email '2816635+ateucher@users.noreply.github.com'
git commit --all --message "[bot] autogenerated conda-lock files"
git push
fi
Loading