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:
parent
e72a84c1c3
commit
6e8ca2f0e6
2 changed files with 6 additions and 1 deletions
6
.github/workflows/reusable_notebook.yml
vendored
6
.github/workflows/reusable_notebook.yml
vendored
|
|
@ -7,6 +7,10 @@ on:
|
||||||
description: "Location of Jupyter notebook to run"
|
description: "Location of Jupyter notebook to run"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
label-name:
|
||||||
|
description: "Name of the label triggering the event"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
GRAPHISTRY_USERNAME:
|
GRAPHISTRY_USERNAME:
|
||||||
required: true
|
required: true
|
||||||
|
|
@ -26,7 +30,7 @@ jobs:
|
||||||
run_notebook_test:
|
run_notebook_test:
|
||||||
name: test
|
name: test
|
||||||
needs: get_docs_changes
|
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
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
|
||||||
1
.github/workflows/test_notebook.yml
vendored
1
.github/workflows/test_notebook.yml
vendored
|
|
@ -17,6 +17,7 @@ jobs:
|
||||||
uses: ./.github/workflows/reusable_notebook.yml
|
uses: ./.github/workflows/reusable_notebook.yml
|
||||||
with:
|
with:
|
||||||
notebook-location: notebooks/cognee_demo.ipynb
|
notebook-location: notebooks/cognee_demo.ipynb
|
||||||
|
label-name: ${{ github.event.label.name }} # Pass event information explicitly
|
||||||
secrets:
|
secrets:
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }}
|
GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue