2023-01-30 14:56:29 +01:00
|
|
|
name: Update dependencies
|
2023-01-30 14:53:44 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2023-01-30 14:55:50 +01:00
|
|
|
- cron: '0 18 * * TUE'
|
2023-01-30 14:53:44 +01:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
name: Update dependencies
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
ref: master
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.11'
|
|
|
|
cache: pip
|
|
|
|
- name: Update dependencies
|
|
|
|
run: |
|
|
|
|
pip install pip-tools invoke
|
|
|
|
invoke update-dependencies --no-sync
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.PERSONAL_TOKEN_PR }}
|
|
|
|
commit-message: Update dependencies
|
|
|
|
base: master
|
|
|
|
branch: update-dependencies
|
|
|
|
title: Update dependencies
|
|
|
|
delete-branch: true
|