From cb9699e12abffcfa97a7a4add40275d5a00827f8 Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 24 Nov 2020 10:59:36 +0200 Subject: [PATCH] Automatic edge build trigger for zigbee2mqtt org (#5068) Automatic edge build trigger for zigbee2mqtt/hassio-zigbee2mqtt --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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"