From 64289bc7bfe7f5dbc720c4f16c935d09a1884ff2 Mon Sep 17 00:00:00 2001 From: Pat Brisbin Date: Thu, 25 Jul 2024 16:23:24 -0400 Subject: [PATCH] Use fail-on-differences in Restyled workflow --- .github/workflows/restyled.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/restyled.yml b/.github/workflows/restyled.yml index d6b0e577..4a05722e 100644 --- a/.github/workflows/restyled.yml +++ b/.github/workflows/restyled.yml @@ -13,7 +13,10 @@ jobs: - uses: restyled-io/actions/setup@v2 - id: restyler uses: restyled-io/actions/run@v2 - - uses: peter-evans/create-pull-request@v6 + with: + fail-on-differences: true + - if: ${{ !cancelled && github.event.pull_request.head.repo.full_name == github.repository }} + uses: peter-evans/create-pull-request@v6 with: base: ${{ steps.restyler.outputs.restyled-base }} branch: ${{ steps.restyler.outputs.restyled-head }} @@ -22,11 +25,3 @@ jobs: labels: restyled reviewers: ${{ github.event.pull_request.user.login }} delete-branch: true - - if: ${{ steps.restyler.outputs.differences == 'true' }} - name: Print Restyled differences - run: | - echo "Restyled found differences:" - cat <<'EOM' - ${{ steps.restyler.outputs.git-patch }} - EOM - exit 1