Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: env update trigger from #1049 #1281

Merged
merged 7 commits into from
Sep 13, 2024
Merged
Changes from 2 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
27 changes: 11 additions & 16 deletions .github/workflows/update-fixed-env.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@
name: Fixed Environment YAML Monitor
name: Environment Checker

on:
push:
branches:
- master
paths:
- 'env/environment.yaml'
- 'envs/environment.yaml'

jobs:
update_environment_fixed:
update-environment-fixed:
name: Update environment.fixed.yaml
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
micromamba-version: latest
activate-environment: pypsa-eur
environment-file: envs/environment.yaml
log-level: debug
init-shell: bash
cache-environment: true
cache-downloads: true

- name: Update environment.fixed.yaml
run: |
mamba env export --file envs/environment.fixed.yaml --no-builds
conda env export --name pypsa-eur > envs/environment.fixed.yaml

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-environment-fixed
title: Update fixed environment
body: Automatically generated PR to update environment.fixed.yaml
labels: automated
title: "[github-actions.ci] Update fixed environment"
body: Automatically generated PR to update environment.fixed.yaml, since environment.yaml was updated.
Loading