Skip to content

chore(deps): update dependency typer-cli to ^0.15.0 #103

chore(deps): update dependency typer-cli to ^0.15.0

chore(deps): update dependency typer-cli to ^0.15.0 #103

name: autopep8
on: pull_request
jobs:
autopep8:
# Check if the PR is not raised by this workflow and is not from a fork
if: startsWith(github.head_ref, 'autopep8-patches') == false && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: autopep8
id: autopep8
uses: peter-evans/autopep8@v2
with:
args: --exit-code --recursive --in-place --aggressive --aggressive .
- name: Create Pull Request
if: steps.autopep8.outputs.exit-code == 2
uses: peter-evans/create-pull-request@v5
with:
commit-message: "style: autopep8 fixes"
title: "style: autopep8 fixes"
body: Beep Boop this is an auto-generated PR with fixes by autopep8.
labels: autopep8, automated pr
branch: "autopep8-patches/${{ github.head_ref }}"
- name: Fail if autopep8 made changes
if: steps.autopep8.outputs.exit-code == 2
run: exit 1