From 56c1fa8fefb7a2724acfd9dda1fde284b6d0023d Mon Sep 17 00:00:00 2001 From: jose Date: Mon, 2 Sep 2024 18:18:56 +0100 Subject: [PATCH] Invoce chart ci The workflow name on the chart repository is OnZigbee2MQTTRelease, this event means that a new version of zigbe2mqtt is has been released, it should probably trigger too the release, but that is a chart repo concern --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fef0faedda..183cf74e48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,7 @@ 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' + - name: 'release: Trigger zigbee2mqtt-chart image update' if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' run: | TAG=${GITHUB_REF#refs/*/} @@ -108,8 +108,8 @@ jobs: -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\"}}" + https://api.github.com/repos/Koenkk/zigbee2mqtt-chart/actions/workflows/OnZigbee2MQTTRelease/dispatches \ + -d '{"ref":"main","inputs":{"zigbee2mqtt_version":"${{TAG}}" }}' - name: 'release: merge dev -> master and promote dev' if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' run: |