cognee/.github/workflows/autoupdate.yml
Vasilije 52baed8ff4
bug: added fix and added my pat (#597)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Introduced an automated process that routinely updates project
dependencies. This enhancement minimizes manual maintenance and helps
ensure optimal system stability and security for users.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-03-06 03:39:31 +01:00

60 lines
No EOL
1.5 KiB
YAML

name: clean | Auto Update Dependencies
on:
schedule:
- cron: '0 0 * * 1' # Run every Monday at midnight
workflow_dispatch: # Allow manual triggering
push:
branches:
- main
- dev
paths:
- 'requirements.txt'
- 'pyproject.toml'
- 'poetry.lock'
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- dev
paths:
- 'requirements.txt'
- 'pyproject.toml'
- 'poetry.lock'
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_FOR_CROSS_REPOS_CICD_TRIGGERING }} # Personal Access Token with repo scope
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pip-tools
- name: Update dependencies
run: |
pip-compile --upgrade requirements.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT_FOR_CROSS_REPOS_CICD_TRIGGERING }} # Personal Access Token with repo scope
commit-message: "chore: update dependencies"
title: "chore: update dependencies"
body: "Automated dependency updates"
branch: "chore/dependency-updates"
delete-branch: true