From 4d11211c8998e9b8e3243417c275290cade0c71f Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Thu, 17 Oct 2024 07:31:14 -0700 Subject: [PATCH] infra: schedule triggers monorepo only by default (#27428) fixes https://github.com/langchain-ai/langchain/issues/27426 --- .github/workflows/api_doc_build.yml | 1 + .github/workflows/check-broken-links.yml | 2 +- .github/workflows/people.yml | 2 +- .github/workflows/run_notebooks.yml | 5 +++-- .github/workflows/scheduled_test.yml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/api_doc_build.yml b/.github/workflows/api_doc_build.yml index 6973e64f742..361dfd775c1 100644 --- a/.github/workflows/api_doc_build.yml +++ b/.github/workflows/api_doc_build.yml @@ -10,6 +10,7 @@ env: jobs: build: + if: github.repository == 'langchain-ai/langchain' || github.event_name != 'schedule' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/check-broken-links.yml b/.github/workflows/check-broken-links.yml index 37c94910fa1..626d345051a 100644 --- a/.github/workflows/check-broken-links.yml +++ b/.github/workflows/check-broken-links.yml @@ -7,7 +7,7 @@ on: jobs: check-links: - if: github.repository_owner == 'langchain-ai' + if: github.repository_owner == 'langchain-ai' || github.event_name != 'schedule' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index adc3a789f6a..8321a319792 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -14,7 +14,7 @@ on: jobs: langchain-people: - if: github.repository_owner == 'langchain-ai' + if: github.repository_owner == 'langchain-ai' || github.event_name != 'schedule' runs-on: ubuntu-latest permissions: write-all steps: diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index 9d4091c107c..06c9a74d905 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -20,7 +20,7 @@ env: jobs: build: runs-on: ubuntu-latest - + if: github.repository == 'langchain-ai/langchain' || github.event_name != 'schedule' name: "Test docs" steps: - uses: actions/checkout@v4 @@ -51,5 +51,6 @@ jobs: MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} + WORKING_DIRECTORY: ${{ github.event.inputs.working-directory || 'all' }} run: | - ./docs/scripts/execute_notebooks.sh ${{ github.event.inputs.working-directory || 'all' }} + ./docs/scripts/execute_notebooks.sh $WORKING_DIRECTORY diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index 0523fbab8fa..6a4767988bf 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -10,7 +10,7 @@ env: jobs: build: - if: github.repository_owner == 'langchain-ai' + if: github.repository_owner == 'langchain-ai' || github.event_name != 'schedule' name: Python ${{ matrix.python-version }} - ${{ matrix.working-directory }} runs-on: ubuntu-latest strategy: