Skip to content

Documentation linking fixes and updates #337

Documentation linking fixes and updates

Documentation linking fixes and updates #337

Workflow file for this run

name: autopep8
on:
pull_request:
branches: ["main", "Development"]
jobs:
autopep8:
# Check if the PR is not from a fork
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ADAXT_ACTIONS }}
ref: ${{ github.head_ref }}
- name: autopep8
id: autopep8
uses: peter-evans/autopep8@v2
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 'Niklas Andreas Pfister'
git config --global user.email 'np@math.ku.dk'
git commit -am "Automated autopep8 fixes"
git push