test: Attempt to fix event propagation issue

Trying to resolve issue of propagating github events to reusable workflow

Test COG-686
This commit is contained in:
Igor Ilic 2024-11-29 12:04:31 +01:00
parent e72a84c1c3
commit 6e8ca2f0e6
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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 }}