cognee/.github/workflows/get_docs_changes.yml
Vasilije bb679c2dd7
Improve processing, update networkx client, and Neo4j, and dspy (#69)
* Update cognify and the networkx client to prepare for running in Neo4j

* Fix for openai model

* Add the fix to the infra so that the models can be passed to the library. Enable llm_provider to be passed.

* Auto graph generation now works with neo4j

* Added fixes for both neo4j and networkx

* Explicitly name semantic node connections

* Added updated docs, readme, chunkers and updates to cognify

* Make docs build trigger only when changes on it happen

* Update docs, test git actions

* Separate cognify logic into tasks

* Introduce dspy knowledge graph extraction

---------
Co-authored-by: Boris Arzentar <borisarzentar@gmail.com>
2024-04-20 19:05:40 +02:00

49 lines
No EOL
1.6 KiB
YAML

name: util | get docs changes
on:
workflow_call:
outputs:
changes_outside_docs:
description: "Changes outside docs"
value: ${{ jobs.get_docs_changes.outputs.changes_outside_docs }}
env:
EXCLUDED_FILE_PATTERNS: '^docs/|^README.md|^CONTRIBUTING.md|^LICENSE\.txt|\.editorconfig|\.gitignore|get_docs_changes.yml'
jobs:
get_docs_changes:
name: docs changes
runs-on: ubuntu-latest
outputs:
changes_outside_docs: ${{ steps.check_changes.outputs.changes_outside_docs }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check changes outside docs
id: check_changes
run: |
echo "base.sha: ${{ github.event.pull_request.base.sha }}"
echo "head.sha: ${{ github.event.pull_request.head.sha }}"
merge_base_sha=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
echo "merge_base_sha: $merge_base_sha"
changes_outside_docs=$(
git diff --name-only $merge_base_sha ${{ github.event.pull_request.head.sha }} \
| grep -vE "${{ env.EXCLUDED_FILE_PATTERNS }}" || true
)
echo $changes_outside_docs
if [ -z "$changes_outside_docs" ]; then
echo "No changes outside docs. Skipping tests."
echo "changes_outside_docs=false" >> $GITHUB_OUTPUT
else
echo "Changes detected outside docs."
echo "changes_outside_docs=true" >> $GITHUB_OUTPUT
fi