diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abc9e71f1b..2cf5995643 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,13 +103,13 @@ jobs: 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/actions/workflows/OnZigbee2MQTTRelease/dispatches \ - -d '{"ref":"main","inputs":{"zigbee2mqtt_version":"$TAG" }}' + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Koenkk/zigbee2mqtt-chart/actions/workflows/on_zigbee2mqtt_release.yaml/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: |