From 6bc47a91ab8614e66b3f5540e69ec04c3001904b Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Mon, 26 Dec 2022 17:43:35 +0100
Subject: [PATCH] other action

---
 .github/workflows/version.yml | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml
index 9acfe3a2..acef3f3e 100644
--- a/.github/workflows/version.yml
+++ b/.github/workflows/version.yml
@@ -1,17 +1,24 @@
-name: Write Version to File
 on:
   push:
     branches:
-      - main
+    - '**'
+  pull_request:
+    types: [closed]
+
+name: GitHub action workflow name
 
 jobs:
-  write-version:
+  context:
+    name: Job name
     runs-on: ubuntu-latest
-    name: Write Version to File
     steps:
-    - uses: actions/checkout@master
-    - name: Update version
-      id: version
-      uses: brettdorrans/write-version-to-file@master
-      with:
-        filename: '/.osuny-theme-version'
+      - name: Checkout code
+        uses: actions/checkout@v2
+      - name: Get current version
+        uses: dolittle/write-version-to-file-action@v2
+        with:
+          version: ${{ steps.context.outputs.current-version }}
+          path: ./.osuny-theme-version
+          user-email: osuny@noesya.coop
+          user-name: osuny-bot
+          merge-strategy: merge
\ No newline at end of file
-- 
GitLab