-
Notifications
You must be signed in to change notification settings - Fork 49
43 lines (37 loc) · 1.13 KB
/
update_deps.yml
File metadata and controls
43 lines (37 loc) · 1.13 KB
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
40
41
42
43
name: update-deps
on:
schedule:
- cron: "0 10 * * *" # Run at 10 am every day
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
environment:
name: protected-main-env
steps:
- name: Generate token
id: generate_token
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.13
- name: Update Dependencies
run: |
pip install poetry
poetry update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ steps.generate_token.outputs.token }}
commit-message: update dependencies
title: Update Dependencies
body: |
Autogenerated PR to update all deps to latest versions
branch: update-dependencies