From 073b0d21261ace8774578697e0bd7aa425a8ab66 Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 3 May 2024 11:07:16 +0200 Subject: [PATCH 1/2] draft bot for automated fixed env yaml --- .github/workflows/update-fixed-env.yaml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/update-fixed-env.yaml diff --git a/.github/workflows/update-fixed-env.yaml b/.github/workflows/update-fixed-env.yaml new file mode 100644 index 000000000..61ed233a1 --- /dev/null +++ b/.github/workflows/update-fixed-env.yaml @@ -0,0 +1,39 @@ +name: Fixed Environment YAML Monitor + +on: + push: + branches: + - master + paths: + - 'env/environment.yaml' + +jobs: + update_environment_fixed: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup micromamba + uses: mamba-org/setup-micromamba@v1 + with: + micromamba-version: latest + 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 + + - 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 From f1cc8463b516e4495d5e7defadcf75622e65e486 Mon Sep 17 00:00:00 2001 From: Fabian Hofmann Date: Mon, 6 May 2024 11:23:58 +0200 Subject: [PATCH 2/2] Update .github/workflows/update-fixed-env.yaml Co-authored-by: Fabian Neumann --- .github/workflows/update-fixed-env.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-fixed-env.yaml b/.github/workflows/update-fixed-env.yaml index 61ed233a1..f66890aa1 100644 --- a/.github/workflows/update-fixed-env.yaml +++ b/.github/workflows/update-fixed-env.yaml @@ -27,7 +27,7 @@ jobs: - name: Update environment.fixed.yaml run: | - mamba env export --file envs/environment.fixed.yaml + mamba env export --file envs/environment.fixed.yaml --no-builds - name: Create Pull Request uses: peter-evans/create-pull-request@v6