From 4abc2aa3ee96bb43a7faa32eabf7d4460b904c66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julien=20Fastr=C3=A9?= <julien.fastre@champs-libres.coop>
Date: Tue, 24 Oct 2023 16:21:32 +0200
Subject: [PATCH] bootstrap gitea actions for auto-commiting composer.lock

---
 .gitea/workflows/release_preparation.yaml | 22 ++++++++++++++++++++++
 composer.json                             |  2 +-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 .gitea/workflows/release_preparation.yaml

diff --git a/.gitea/workflows/release_preparation.yaml b/.gitea/workflows/release_preparation.yaml
new file mode 100644
index 0000000..1956454
--- /dev/null
+++ b/.gitea/workflows/release_preparation.yaml
@@ -0,0 +1,22 @@
+name: Prepare release for chill app
+run-name: Update composer.lock and dependencies for preparing a release
+
+on:
+    push:
+        branches:
+            - 'release/**'
+
+jobs:
+    update-deps:
+        steps:
+            - name: check out repository
+              uses: https://github.com/actions/checkout@v4
+            - name: run "composer update" to update composer.lock
+              uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
+              run: composer update
+            - name: commit changed files
+              uses: stefanzweifel/git-auto-commit-action@v5
+              with:
+                  commit_message: "update composer.lock and file (automatic update)"
+                  commit_user_name: Action Bot
+                  commit_user_email: bot@chill.social
diff --git a/composer.json b/composer.json
index 8ae73bf..9731ff8 100644
--- a/composer.json
+++ b/composer.json
@@ -15,7 +15,7 @@
     },
     "require": {
         "ext-redis": "*",
-        "chill-project/chill-bundles": "2.9.2",
+        "chill-project/chill-bundles": "2.10.0",
         "symfony/flex": "^1.9",
         "symfony/http-client": "^4.4 || ^5",
         "nelmio/alice": "^3.8",