From 0d31c4da1cc838604120e4581e50b65a6dbce009 Mon Sep 17 00:00:00 2001 From: Stephan Fitzpatrick Date: Wed, 8 Jan 2025 16:12:28 -0800 Subject: [PATCH] feat: Add GitHub Actions workflow to notify Letta Cloud on main branch pushes (#2337) --- .github/workflows/notify-letta-cloud.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/notify-letta-cloud.yml diff --git a/.github/workflows/notify-letta-cloud.yml b/.github/workflows/notify-letta-cloud.yml new file mode 100644 index 00000000..0874be59 --- /dev/null +++ b/.github/workflows/notify-letta-cloud.yml @@ -0,0 +1,19 @@ +name: Notify Letta Cloud + +on: + push: + branches: + - main + +jobs: + notify: + runs-on: ubuntu-latest + if: ${{ !contains(github.event.head_commit.message, '[sync-skip]') }} + steps: + - name: Trigger repository_dispatch + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.SYNC_PAT }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/letta-ai/letta-cloud/dispatches \ + -d '{"event_type":"oss-update"}'