From 28b7316debb5698a3af63be9c994402398d0a31b Mon Sep 17 00:00:00 2001
From: Maxime Curioni <maxime@ipinfo.io>
Date: Wed, 7 Aug 2024 18:24:52 -0600
Subject: [PATCH] Release Github workflow commits version changes to the
 repository at the end

---
 .github/workflows/cd_github.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.github/workflows/cd_github.yaml b/.github/workflows/cd_github.yaml
index bcd83f0..757e130 100644
--- a/.github/workflows/cd_github.yaml
+++ b/.github/workflows/cd_github.yaml
@@ -48,6 +48,9 @@ jobs:
     - name: Build
       run: ./scripts/build-archive-all.sh ${{ env.CLI_VERSION }}
 
+    - name: Update platform scripts version
+      run: ./scripts/update-platform-scripts-version.sh ${{ env.CLI_VERSION }}
+
     - name: Generate changelog
       run: ./scripts/changelog.sh ${{ env.CLI_VERSION }} > changes.md
 
@@ -62,3 +65,16 @@ jobs:
           ./macos.sh
           ./windows.ps1
           ./deb.sh
+
+      - uses: EndBug/add-and-commit@v9
+        with:
+          add: |
+            - ./CHANGELOG.md
+            - ./README.md
+            - ./deb.sh
+            - ./dist/DEBIAN/control
+            - ./macos.sh
+            - ./windows.ps1
+          message: "Release `${{ env.CLI_VERSION }}`"
+          push: "origin master"
+          default_author: "github_actions"