Skip to content

Commit

Permalink
chore(restyled): move to suggestions flow
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jan 30, 2025
1 parent 5a22dbf commit a7cff2b
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,17 @@ name: Restyled

on:
pull_request:
types:
- opened
- closed
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
restyled:
if: ${{ github.event.pull_request.merged != true }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: restyled-io/actions/setup@v4
- uses: restyled-io/actions/run@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: restyled-io/actions/setup@v3
- id: restyler
uses: restyled-io/actions/run@v3
with:
fail-on-differences: true
- if: |
!cancelled() &&
steps.restyler.outputs.success == 'true' &&
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 }}
title: ${{ steps.restyler.outputs.restyled-title }}
body: ${{ steps.restyler.outputs.restyled-body }}
labels: restyled
reviewers: ${{ github.event.pull_request.user.login }}
delete-branch: true
suggestions: true

0 comments on commit a7cff2b

Please sign in to comment.