-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (40 loc) · 1.51 KB
/
updater.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
40
41
42
43
name: Update Dependencies
on:
schedule:
# 28th of every month
- cron: '0 10 28 * *'
workflow_dispatch:
jobs:
update-dep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-node@v4.0.2
with:
node-version: '16.x'
- name: Update dependencies
run: |
pip install pip-upgrader
pip-upgrade -p all --skip-package-installation requirements-docs.txt
pip-upgrade -p all --skip-package-installation requirements-test.txt
pip-upgrade -p all --skip-package-installation requirements-lint.txt
pip-upgrade -p all --skip-package-installation requirements-all.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.0.1
with:
#
# This secret should be a classic personal access token from the
# oscarbenjamin-bot account with repo and workflow scope. A fine
# grained token does not appear to work.
#
# https://github.com/peter-evans/create-pull-request/issues/1791
#
token: ${{ secrets.OSCARBENJAMIN_BOT_PROTOSYM_CLASSIC }}
push-to-fork: oscarbenjamin-bot/protosym
delete-branch: true
commit-message: Update dependencies
title: Update dependencies
body: |
- Dependency updates
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request