2023-03-25 20:24:12 +01:00
|
|
|
name: Update dependencies
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 18 * * MON'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-04-29 22:57:01 +02:00
|
|
|
env:
|
|
|
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
|
|
|
|
2023-03-25 20:24:12 +01:00
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
name: Update dependencies
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-04 20:34:54 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-03-25 20:24:12 +01:00
|
|
|
with:
|
|
|
|
ref: master
|
|
|
|
- name: Set up Python
|
2023-12-11 19:10:13 +01:00
|
|
|
uses: actions/setup-python@v5
|
2023-03-25 20:24:12 +01:00
|
|
|
with:
|
2023-10-24 10:54:53 +02:00
|
|
|
python-version: '3.12'
|
2023-03-25 20:24:12 +01:00
|
|
|
cache: pip
|
|
|
|
- name: Update dependencies
|
|
|
|
run: |
|
|
|
|
pip install pip-tools invoke
|
|
|
|
invoke update-dependencies --no-sync
|
|
|
|
- name: Generate token
|
2023-09-11 20:45:52 +02:00
|
|
|
uses: tibdex/github-app-token@v2
|
2023-03-25 20:24:12 +01:00
|
|
|
id: generate-token
|
|
|
|
with:
|
|
|
|
app_id: ${{ secrets.PR_APP_ID }}
|
|
|
|
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
|
|
|
|
- name: Create Pull Request
|
2024-02-05 19:53:32 +01:00
|
|
|
uses: peter-evans/create-pull-request@v6
|
2023-03-25 20:24:12 +01:00
|
|
|
id: create-pull-request
|
|
|
|
with:
|
|
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
|
|
commit-message: Update dependencies
|
|
|
|
base: master
|
|
|
|
branch: update-dependencies
|
|
|
|
title: Update dependencies
|
|
|
|
delete-branch: true
|