Skip to content

Bump actions/setup-python from 5.0.0 to 5.1.0 (#512) #628

Bump actions/setup-python from 5.0.0 to 5.1.0 (#512)

Bump actions/setup-python from 5.0.0 to 5.1.0 (#512) #628

Workflow file for this run

name: Automatic PEP8
on:
push:
branches:
- master
- stable
- development
jobs:
autopep8:
# Check if the PR is not from a fork
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PEP8_REPO_ACCESS_TOKEN }}
ref: ${{ github.head_ref }}
- name: autopep8
id: autopep8
uses: peter-evans/[email protected]
with:
args: --exit-code --recursive --in-place --aggressive --aggressive .
- name: Commit autopep8 changes
if: steps.autopep8.outputs.exit-code == 2
run: |
git config --global user.name 'Joran angevaare'
git config --global user.email '[email protected]'
git commit -am "Automated autopep8 fixes"
git push