-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add restyled workflow * Update pullapprove to look at the restyle workflow * Update comment * Use same checkout command as the rest of the scripts --------- Co-authored-by: Andrei Litvin <[email protected]>
- Loading branch information
1 parent
18fafa5
commit ccd45b0
Showing
2 changed files
with
274 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Restyled | ||
|
||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
restyled: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: restyled-io/actions/setup@v4 | ||
- id: restyler | ||
uses: restyled-io/actions/run@v4 | ||
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 |
Oops, something went wrong.