Skip to content

Commit

Permalink
feat(temporal-worker): Add steps to trigger deployment (#17881)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored and daibhin committed Oct 23, 2023
1 parent d633ff1 commit f3c598a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/container-images-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,21 @@ jobs:
{
"image_tag": "${{ steps.build.outputs.digest }}"
}
- name: Check for changes that affect temporal worker
id: check_changes_temporal_worker
run: |
echo "::set-output name=changed::$(git diff --name-only HEAD^ HEAD | grep -E '^posthog/temporal/|^posthog/batch_exports/|^posthog/management/commands/start_temporal_worker.py$' || true)"
- name: Trigger Temporal Worker Cloud deployment
if: steps.check_changes_temporal_worker.outputs.changed != ''
uses: mvasigh/dispatch-action@main
with:
token: ${{ steps.deployer.outputs.token }}
repo: charts
owner: PostHog
event_type: temporal_worker_deploy
message: |
{
"image_tag": "${{ steps.build.outputs.digest }}"
}

0 comments on commit f3c598a

Please sign in to comment.