Skip to content

Bump actions/attest-build-provenance from 1 to 2 (#24) #27

Bump actions/attest-build-provenance from 1 to 2 (#24)

Bump actions/attest-build-provenance from 1 to 2 (#24) #27

Workflow file for this run

name: Style
on:
push:
branches:
- master
jobs:
auto-format:
name: Lint & format code with ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install ruff
- name: Lint & format code with ruff and commit any changes
run: |
ruff check --output-format=github --fix .
ruff format .
git config --global user.name 'Auto ruff formatter'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout ${GITHUB_REF#refs/heads/}
git diff --quiet || git commit -am "Format code with ruff [auto]" && git push