diff --git a/.github/workflows/reusable_notebook.yml b/.github/workflows/reusable_notebook.yml index 05ca08d32..4f5a56ce4 100644 --- a/.github/workflows/reusable_notebook.yml +++ b/.github/workflows/reusable_notebook.yml @@ -7,6 +7,10 @@ on: description: "Location of Jupyter notebook to run" required: true type: string + label-name: + description: "Name of the label triggering the event" + required: true + type: string secrets: GRAPHISTRY_USERNAME: required: true @@ -26,7 +30,7 @@ jobs: run_notebook_test: name: test needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && github.event.label.name == 'run-checks' + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && inputs.label-name == 'run-checks' runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index 8d03c783c..f9387df40 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -17,6 +17,7 @@ jobs: uses: ./.github/workflows/reusable_notebook.yml with: notebook-location: notebooks/cognee_demo.ipynb + label-name: ${{ github.event.label.name }} # Pass event information explicitly secrets: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }}