Skip to content

Commit

Permalink
Add workflow to keep Ruff version up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Jan 11, 2025
1 parent a9dc65f commit a48031b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ruff-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ruff

on:
pull_request:
paths:
- "{{cookiecutter.project_slug}}/requirements/local.txt"

permissions:
contents: write
pull-requests: write

jobs:
version:
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.GH_PAT }}
steps:
- name: Checkout with token
uses: actions/checkout@v4
if: ${{ env.GH_PAT != '' }}
with:
token: ${{ env.GH_PAT }}

- name: Checkout without token
uses: actions/checkout@v4
if: ${{ env.GH_PAT == '' }}

- uses: astral-sh/setup-uv@v5

- run: uv run scripts/ruff_version.py

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Align Ruff versions

0 comments on commit a48031b

Please sign in to comment.