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.ymlindex 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 updatedruns-on: ubuntu-latestneeds: check-datesteps:@@ -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 publishdiff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.ymlindex 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 updatedruns-on: ubuntu-lateststeps:- 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