-
-
Notifications
You must be signed in to change notification settings - Fork 70
39 lines (35 loc) · 943 Bytes
/
dependabot.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: Dependabot Actions
permissions:
contents: write
pull-requests: write
on:
push:
branches:
- dependabot/pip/**
pull_request:
branches:
- dependabot/pip/**
env:
PYTHON_VERSION: '3.11'
POETRY_VERSION: 1.8.2
jobs:
run:
name: Update requirements.txt and lock file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- uses: ./.github/actions/setup-poetry-action
with:
poetry-version: ${{ env.POETRY_VERSION }}
python-version: ${{ env.PYTHON_VERSION }}
install-dependencies: false
- name: Update dependencies
run: |
poetry lock --no-update
poetry export -f requirements.txt --output requirements.txt --without-hashes
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update requirements.txt
branch: ${{ github.head_ref }}