-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (35 loc) · 1.11 KB
/
poetry-update.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
on:
workflow_dispatch: {}
schedule:
# Sunday
- cron: "20 20 * * 0"
name: "poetry: create PR"
jobs:
poetry_update:
name: poetry update
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: poetry update
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: |
python -m pip install -U pip
pip install poetry
poetry update
COMMIT_MESSAGE: "chore: scheduled poetry update"
COMMIT_NAME: "GitHub Actions"
COMMIT_EMAIL: "noreply@github.com"
GITHUB_TOKEN: ${{ secrets.APPROVAL_TOKEN }}
PR_BRANCH_PREFIX: deps/
PR_BRANCH_NAME: poetry-update
PR_TITLE: "chore: scheduled poetry update"
PR_BODY: |-
## Update dependencies
This is a scheduled update of Python dependencies within this
repo managed by poetry.
This change will be approved automatically and merged within
a few days if all checks have succeeded.