From 515feb9f9e72f098d735e96e73af3d0ac7bf8483 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 23 Oct 2025 18:43:00 +0200 Subject: [PATCH] test auto-commit --- .github/workflows/dev_release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/dev_release.yml b/.github/workflows/dev_release.yml index 474fd2523..ad9e1fa0c 100644 --- a/.github/workflows/dev_release.yml +++ b/.github/workflows/dev_release.yml @@ -61,6 +61,33 @@ jobs: run: | platformio run + - name: Commit the generated files + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: update generated files" + + - name: Configure Git + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - name: Check for changes and commit + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "Changes detected, committing..." + git add . + git commit -m "Auto-commit build artifacts and configuration updates + + - Updated build configurations + - Generated build artifacts + - Version: ${{steps.build_info.outputs.VERSION}}" + + echo "Pushing changes to repository..." + git push origin dev + else + echo "No changes to commit" + fi + - name: Create GitHub Release id: 'automatic_releases' uses: emsesp/action-automatic-releases@v1.0.0