diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.yml index dd8b8b039689c..ce76c33ef6f79 100644 --- a/.github/workflows/container-images-cd.yml +++ b/.github/workflows/container-images-cd.yml @@ -83,17 +83,22 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Trigger PostHog Cloud deployment from Charts - uses: mvasigh/dispatch-action@main + uses: peter-evans/repository-dispatch@v3 with: token: ${{ steps.deployer.outputs.token }} - repo: charts - owner: PostHog - event_type: posthog_deploy - message: | + repository: PostHog/charts + event-type: commit_state_update + client-payload: | { - "image_tag": "${{ steps.build.outputs.digest }}", - "context": ${{ toJson(github) }}, - "github_labels": ${{ toJson(steps.labels.outputs.labels) }} + "values": { + "image": { + "sha": "${{ steps.build.outputs.digest }}" + } + }, + "release": "posthog", + "commit": ${{ toJson(github.event.head_commit) }}, + "repository": ${{ toJson(github.repository) }}, + "labels": ${{ steps.labels.outputs.labels }} } - name: Check for changes in plugins directory