Use commit name from trigger
This commit is contained in:
3
.github/workflows/validate_esphome.yml
vendored
3
.github/workflows/validate_esphome.yml
vendored
@@ -205,8 +205,9 @@ jobs:
|
||||
run: |
|
||||
git config --global user.name 'GitHub Actions'
|
||||
git config --global user.email 'actions@github.com'
|
||||
commit_message="${{ github.event.pull_request.title || 'Actions' }}"
|
||||
git add prebuilt/*.bin
|
||||
git commit -m "Automatically update ESPHome firmware for NSPanel"
|
||||
git commit -m "Pre-built firmware for NSPanel - $commit_message"
|
||||
git push
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user