CoolFace
Apppublic

oriasirmi/AutoGPT

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
auto_format.yml24 linesDownload Raw Back to workflows
1name: auto-format2on: pull_request3jobs:4  format:5    runs-on: ubuntu-latest6    steps:7      - name: Checkout PR branch8        uses: actions/checkout@v29        with:10          ref: ${{ github.event.pull_request.head.sha }}11      - name: autopep812        uses: peter-evans/autopep8@v113        with:14          args: --exit-code --recursive --in-place --aggressive --aggressive .15      - name: Check for modified files16        id: git-check17        run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_ENV18      - name: Push changes19        if: steps.git-check.outputs.modified == 'true'20        run: |21          git config --global user.name 'Torantulino'22          git config --global user.email 'toran.richards@gmail.com'23          git remote set24