Skip to content

Commit

Permalink
Use fail-on-differences in Restyled workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jul 25, 2024
1 parent 0f4c909 commit 64289bc
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 64289bc

Please sign in to comment.