Skip to content

Commit

Permalink
added dispatch trigger to build firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Dec 18, 2024
1 parent 74b0e67 commit 096ebf2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/trigger_firmware_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Trigger Firmware Build

on:
workflow_run:
workflows: ["Build and Deploy RGBWW Frontend App"]
types:
- completed

jobs:
dispatch:
runs-on: ubuntu-latest

steps:
- name: Trigger repository_dispatch
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GH_PAT }}" \
https://api.github.com/repos/pljakobs/esp_rgbww_firmware/dispatches \
-d '{"event_type":"frontend-build-completed"}'

0 comments on commit 096ebf2

Please sign in to comment.