From 5bdf90df9ede585a2d3ef7a8f992abbf2acd83e0 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 20 Aug 2024 21:36:01 +0200 Subject: [PATCH] chore: Trigger zigbee2mqtt-chart release on release https://github.com/Koenkk/zigbee2mqtt-chart/issues/7 --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c66d683a..6642146e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,18 @@ jobs: -H "Content-Type: application/json" \ https://api.github.com/repos/zigbee2mqtt/hassio-zigbee2mqtt/dispatches \ --data "{\"event_type\": \"release\", \"client_payload\": { \"version\": \"$TAG-1\"}}" + - name: 'release: Trigger zigbee2mqtt-chart release' + if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' + run: | + TAG=${GITHUB_REF#refs/*/} + echo "Triggering with tag '$TAG'" + curl \ + -X POST \ + -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Content-Type: application/json" \ + https://api.github.com/repos/Koenkk/zigbee2mqtt-chart/dispatches \ + --data "{\"event_type\": \"release\", \"client_payload\": { \"version\": \"$TAG\"}}" - name: 'release: merge dev -> master and promote dev' if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' run: |