Bump actions/checkout from 4.0.0 to 4.1.0 #7
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: Code formatting with Black | |
on: [ push ] | |
jobs: | |
linter_name: | |
name: runner / black | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Check files using the black formatter | |
uses: rickstaa/action-black@a8c265080dc5e54435950803603f5024a65400a9 # v1.3.1 | |
id: action_black | |
with: | |
black_args: ". --line-length=120" | |
- name: Create Pull Request | |
if: steps.action_black.outputs.is_formatted == 'true' | |
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: "Format Python code with psf/black push" | |
commit-message: ":art: Format Python code with psf/black" | |
body: | | |
There appear to be some python formatting errors in ${{ github.sha }}. This pull request | |
uses the [psf/black](https://github.com/psf/black) formatter to fix these issues. | |
base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch | |
branch: actions/black |