This repository was archived by the owner on Aug 6, 2025. It is now read-only.
  
  
  
  
update dependencies #42
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: update dependencies | |
| on: | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| ref: development | |
| - name: Set up Python | |
| uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: '3.10' | |
| cache: pip | |
| - name: Install pre-commit and pip-tools | |
| run: pip install pre-commit pip-tools | |
| - name: Run pre-commit autoupdate | |
| run: pre-commit autoupdate | |
| - name: Run pip-compile | |
| run: pip-compile --upgrade | |
| - name: Run GitHub Actions Version Updater | |
| uses: saadmk11/github-actions-version-updater@v0.9.0 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| skip_pull_request: "true" | |
| - name: Create patch | |
| if: always() | |
| run: | | |
| git diff > changes.patch | |
| git apply --allow-empty "changes.patch" | |
| - name: Delete patch file | |
| if: always() | |
| run: rm -f changes.patch | |
| - name: Create Pull Request | |
| if: always() | |
| uses: peter-evans/create-pull-request@v7.0.8 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| branch: dependency-updates | |
| title: "Dependency Updates" | |
| commit-message: "Scheduled dependency updates" |