-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.1 KB
/
python-update-reqs.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
name: Update Requirements
on:
workflow_dispatch:
repository_dispatch:
types:
- model-core-published
- api-core-published
- catalog-objects-published
- db-published
schedule:
- cron: "0 1 * * 1"
push:
branches:
- develop
paths:
- "requirements/*.in"
- setup.py
jobs:
update-reqs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: update-reqs
run: |
pip install -U wheel setuptools pip-tools
git config --global user.email "[email protected]"
git config --global user.name "SweetRPG Requirement Updater"
git checkout ${{ github.head_ref || github.ref_name }}
scripts/update-requirements.sh
git add requirements/*.txt
git commit -m "Update requirements"
git push origin