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.

build: Add a filter to only allow the Pypi publish Actions to be run from the primary repo (#924)

RT597ba3f2536a
diff --git a/.github/workflows/poetry-publish-nightly.yml b/.github/workflows/poetry-publish-nightly.yml
index 357c04a93..92c8d3a35 100644
--- a/.github/workflows/poetry-publish-nightly.yml
+++ b/.github/workflows/poetry-publish-nightly.yml
@@ -24,6 +24,7 @@ jobs:
build-and-publish-nightly:
name: Build and Publish to PyPI (nightly)
+ if: github.repository == 'cpacker/MemGPT' # TODO: if the repo org ever changes, this must be updated
runs-on: ubuntu-latest
needs: check-date
steps:
@@ -58,4 +59,4 @@ jobs:
run: poetry build
- name: Publish the package to PyPI
- run: poetry publish
\ No newline at end of file
+ run: poetry publish
diff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.yml
index 6e3d9ecbe..37dee66d2 100644
--- a/.github/workflows/poetry-publish.yml
+++ b/.github/workflows/poetry-publish.yml
@@ -7,6 +7,7 @@ on:
jobs:
build-and-publish:
name: Build and Publish to PyPI
+ if: github.repository == 'cpacker/MemGPT' # TODO: if the repo org ever changes, this must be updated
runs-on: ubuntu-latest
steps:
- name: Check out the repository
@@ -28,4 +29,4 @@ jobs:
run: poetry build
- name: Publish the package to PyPI
- run: poetry publish
\ No newline at end of file
+ run: poetry publish