diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b11a96733..a7f5b8a6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,4 +76,13 @@ jobs: --header "Content-Type: application/json" \ --data '{"definition": {"id": 1}}' \ -u ${{ secrets.HASSIO_TRIGGER_SECRET }} \ - "https://dev.azure.com/danielwelch2101/hassio-zigbee2mqtt/_apis/build/builds?api-version=5.1" \ No newline at end of file + "https://dev.azure.com/danielwelch2101/hassio-zigbee2mqtt/_apis/build/builds?api-version=5.1" + - name: Trigger zigbee2mqtt/hassio-zigbee2mqtt build + if: github.ref == 'refs/heads/dev' && github.event_name == 'push' + run: | + curl -s \ + --request POST \ + --header "Content-Type: application/json" \ + --data '{"definition": {"id": 9}}' \ + -u ${{ secrets.HASSIO_TRIGGER_SECRET }} \ + "https://dev.azure.com/zigbee2mqtt/Zigbee2mqtt%20Add-on/_apis/build/builds?api-version=5.1"