Bump the ci-dependencies group with 3 updates #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run linter | |
uses: psf/black@stable | |
with: | |
options: "--line-length 120" | |
src: "." | |
- name: Commit & push changes (main only) | |
if: github.event_name == 'push' && github.ref_name == 'main' | |
continue-on-error: true | |
run: | | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
git add -A | |
git commit -m "[ci] Autoformat with black" | |
git push | |
- name: Fail job if changes were made (PR only) | |
if: github.event_name == 'pull_request' | |
run: git diff-index --quiet HEAD -- || (git diff && exit 1) |