-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.25 KB
/
update-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update dependencies
on:
workflow_dispatch:
schedule:
- cron: 30 1 * * *
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-dependencies:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'monosans' }}
strategy:
matrix:
include:
- cmd: pipx run poetry lock --no-interaction
commit-msg: Update poetry.lock
branch: update/poetry-lock
- cmd: pipx run pre-commit autoupdate
commit-msg: Update .pre-commit-config.yaml
branch: update/pre-commit-config
fail-fast: false
steps:
- uses: actions/checkout@v4
- run: ${{ matrix.cmd }}
- id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: ${{ matrix.commit-msg }}
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: ${{ matrix.branch }}
delete-branch: true
title: ${{ matrix.commit-msg }}
body: