prebuilt action
This commit is contained in:
29
.github/workflows/validate_esphome.yml
vendored
29
.github/workflows/validate_esphome.yml
vendored
@@ -179,4 +179,33 @@ jobs:
|
||||
uses: barndawgie/build-action@v1.9.0
|
||||
with:
|
||||
yaml_file: "./.test/esphome_advanced_climate_heat_customizations.yaml"
|
||||
|
||||
build_prebuilt_firmware:
|
||||
name: Prebuilt Firmware
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_core # Ensure this job runs after the core build job
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.0
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: Build ESPHome Prebuilt Firmware
|
||||
uses: barndawgie/build-action@v1.9.0
|
||||
with:
|
||||
yaml_file: prebuilt/nspanel_esphome_prebuilt.yaml
|
||||
version: latest
|
||||
|
||||
- name: Move and Rename Firmware File
|
||||
run: |
|
||||
mv *.bin prebuilt/
|
||||
|
||||
- name: Commit and Push Firmware File
|
||||
run: |
|
||||
git config --global user.name 'GitHub Actions'
|
||||
git config --global user.email 'actions@github.com'
|
||||
git add prebuilt/*.bin
|
||||
git commit -m "Automatically update ESPHome firmware for NSPanel"
|
||||
git push
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user