-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (39 loc) · 1.12 KB
/
dependabot_amend.yaml
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
44
45
46
---
name: Amend Dependabot PRs
on: # yamllint disable-line rule:truthy
push:
branches:
- dependabot/pip/**
pull_request:
branches:
- dependabot/pip/**
workflow_dispatch: # allow this workflow to be manually triggered
# checkout needs 'contents:read'
# pull request needs 'pull-requests:write' and 'contents:write'
permissions:
contents: write
pull-requests: write
jobs:
amend_dependabot_prs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install hatch
run: pip install hatch
- name: Update hatch requirements
run: |
rm .hatch/requirements*.txt
hatch run true
hatch -e docs run true
hatch -e lint run true
hatch -e test run true
- name: Commit changes
uses: stefanzweifel/[email protected]
with:
commit_message: "[dependabot skip] :wrench: Update Python requirements files"
branch: ${{ github.head_ref }}