Skip to content

Commit a48031b

Browse files
committed
Add workflow to keep Ruff version up to date
1 parent a9dc65f commit a48031b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: .github/workflows/ruff-version.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ruff
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "{{cookiecutter.project_slug}}/requirements/local.txt"
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
version:
14+
runs-on: ubuntu-latest
15+
env:
16+
GH_PAT: ${{ secrets.GH_PAT }}
17+
steps:
18+
- name: Checkout with token
19+
uses: actions/checkout@v4
20+
if: ${{ env.GH_PAT != '' }}
21+
with:
22+
token: ${{ env.GH_PAT }}
23+
24+
- name: Checkout without token
25+
uses: actions/checkout@v4
26+
if: ${{ env.GH_PAT == '' }}
27+
28+
- uses: astral-sh/setup-uv@v5
29+
30+
- run: uv run scripts/ruff_version.py
31+
32+
- uses: stefanzweifel/git-auto-commit-action@v5
33+
with:
34+
commit_message: Align Ruff versions

0 commit comments

Comments
 (0)