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-01-30 15:12:59 +01:00
|
|
|
pull-requests: write
|
|
|
|
contents: write
|
2023-01-30 14:53:44 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
name: Update dependencies
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-01-30 14:58:08 +01:00
|
|
|
with:
|
|
|
|
ref: master
|
2023-01-30 14:53:44 +01:00
|
|
|
- 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
|
2023-02-08 22:10:00 +01:00
|
|
|
- name: Generate token
|
|
|
|
uses: tibdex/github-app-token@v1
|
|
|
|
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
|
|
|
|
uses: peter-evans/create-pull-request@v4
|
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
|