From 6e8ca2f0e6327e505ddb7f0043290f1048f83780 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 12:04:31 +0100 Subject: [PATCH] test: Attempt to fix event propagation issue Trying to resolve issue of propagating github events to reusable workflow Test COG-686 --- .github/workflows/reusable_notebook.yml | 6 +++++- .github/workflows/test_notebook.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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 }}