diff --git a/.github/workflows/autoblack.yml b/.github/workflows/autoblack.yml index 761222b..c88b8bb 100644 --- a/.github/workflows/autoblack.yml +++ b/.github/workflows/autoblack.yml @@ -1,8 +1,10 @@ name: Check / auto apply Black + on: push: - branches: - - master + branches: + - master + jobs: black: name: Check / auto apply black @@ -15,15 +17,8 @@ jobs: with: options: "." continue-on-error: true - - shell: pwsh - id: check_files_changed - run: | - # Diff HEAD with the previous commit - $diff = git diff - $HasDiff = $diff.Length -gt 0 - Write-Host "::set-output name=files_changed::$HasDiff" + - name: Create Pull Request - if: steps.check_files_changed.outputs.files_changed == 'true' uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }}