mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
test auto-commit
This commit is contained in:
27
.github/workflows/dev_release.yml
vendored
27
.github/workflows/dev_release.yml
vendored
@@ -61,6 +61,33 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
platformio 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
|
- name: Create GitHub Release
|
||||||
id: 'automatic_releases'
|
id: 'automatic_releases'
|
||||||
uses: emsesp/action-automatic-releases@v1.0.0
|
uses: emsesp/action-automatic-releases@v1.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user