Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: fern docs preview trigger (#2926)

Kian Jones45f8ced218f7
diff --git a/.github/workflows/fern-docs-preview.yml b/.github/workflows/fern-docs-preview.yml
index 32a3de9a0..b15b4c044 100644
--- a/.github/workflows/fern-docs-preview.yml
+++ b/.github/workflows/fern-docs-preview.yml
@@ -2,8 +2,12 @@ name: Preview Docs
on:
pull_request:
- paths:
- - 'fern/**'
+ branches:
+ - main
+ pull_request_target:
+ branches:
+ - main
+ types: [labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -11,6 +15,7 @@ concurrency:
jobs:
run:
+ if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test'))
runs-on: [self-hosted, small]
permissions: write-all
steps: