Skip to content

Commit 47045b4

Browse files
Add a GitHub Actions workflow for bumping dev deps with manual trigger (#1394)
1 parent a6c3840 commit 47045b4

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/bump-dev-dep.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Bump a Development Dependency
2+
permissions: {}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
package:
7+
description: "Name of the package to bump"
8+
required: true
9+
type: choice
10+
# Hard-coding options for safety
11+
# It's also useful as a record of which packages tend to need bumping
12+
options:
13+
- black
14+
- urllib
15+
jobs:
16+
regen:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
persist-credentials: false
23+
24+
- name: Set up uv
25+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
26+
with:
27+
version: "latest"
28+
enable-cache: true
29+
30+
- name: Regenerate
31+
# Updates uv.lock, requirements.txt, and docs/requirements.txt
32+
run: uv run -P $PKG_TO_BUMP prek -a uv-export
33+
env:
34+
PKG_TO_BUMP: ${{ inputs.package }}

0 commit comments

Comments
 (0)