-
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (37 loc) · 1.3 KB
/
build-nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Nightly Firmware Build Check
on:
schedule:
- cron: "0 0 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile Stock (ESP32-S3) Firmware
uses: esphome/build-action@v4.0.1
with:
yaml-file: firmware/doorman-stock.yaml
version: latest
complete-manifest: true
- name: Compile Nuki Bridge (ES32-S3) Firmware
uses: esphome/build-action@v4.0.1
with:
yaml-file: firmware/doorman-nuki-bridge.yaml
version: latest
complete-manifest: true
- name: Compile Component Test (ESP8266) Firmware
uses: esphome/build-action@v4.0.1
with:
yaml-file: firmware/tc-bus-component-8266.yaml
version: latest
- name: Send Discord failure notification
if: failure()
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#FF6961"
message: "Doorman Firmware: Nightly build failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"