From 71efc8f12a76dddcbaa04cdd685f81fe0ed7205f Mon Sep 17 00:00:00 2001 From: Fabian Hofmann Date: Fri, 19 Jul 2024 17:49:41 +0200 Subject: [PATCH] draft bot for automated fixed env yaml (#1049) * draft bot for automated fixed env yaml * Update .github/workflows/update-fixed-env.yaml Co-authored-by: Fabian Neumann --------- Co-authored-by: Fabian Neumann --- .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..f66890aa1 --- /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 --no-builds + + - 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