diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cce475171..fef0faedda 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: |