2023-01-30 14:56:29 +01:00
|
|
|
name: Update dependencies
|
2023-01-30 14:53:44 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2023-02-08 22:16:13 +01:00
|
|
|
- cron: '0 18 * * MON'
|
2023-01-30 14:53:44 +01:00
|
|
|
|
|
|
|
permissions:
|
2023-02-08 22:38:05 +01:00
|
|
|
contents: read
|
2023-01-30 14:53:44 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
name: Update dependencies
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-11 13:58:41 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-01-30 14:58:08 +01:00
|
|
|
with:
|
|
|
|
ref: master
|
2023-01-30 14:53:44 +01:00
|
|
|
- name: Set up Python
|
2023-12-11 12:41:36 +01:00
|
|
|
uses: actions/setup-python@v5
|
2023-01-30 14:53:44 +01:00
|
|
|
with:
|
2024-11-30 10:00:06 +01:00
|
|
|
python-version: '3.13'
|
2023-01-30 14:53:44 +01:00
|
|
|
cache: pip
|
|
|
|
- name: Update dependencies
|
|
|
|
run: |
|
|
|
|
pip install pip-tools invoke
|
|
|
|
invoke update-dependencies --no-sync
|
2023-02-08 22:10:00 +01:00
|
|
|
- name: Generate token
|
2023-09-11 13:58:35 +02:00
|
|
|
uses: tibdex/github-app-token@v2
|
2023-02-08 22:10:00 +01:00
|
|
|
id: generate-token
|
|
|
|
with:
|
|
|
|
app_id: ${{ secrets.PR_APP_ID }}
|
|
|
|
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
|
2023-01-30 14:53:44 +01:00
|
|
|
- name: Create Pull Request
|
2024-09-09 13:24:28 +02:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2023-01-30 15:08:32 +01:00
|
|
|
id: create-pull-request
|
2023-01-30 14:53:44 +01:00
|
|
|
with:
|
2023-02-08 22:10:00 +01:00
|
|
|
token: ${{ steps.generate-token.outputs.token }}
|
2023-01-30 14:53:44 +01:00
|
|
|
commit-message: Update dependencies
|
|
|
|
base: master
|
|
|
|
branch: update-dependencies
|
|
|
|
title: Update dependencies
|
|
|
|
delete-branch: true
|