Skip to content

Commit

Permalink
Don't run Restyled on merged PRs (only closed)
Browse files Browse the repository at this point in the history
If merged, the head branch would be automatically deleted and our
checkout will fail. This means that only closed (abandoned) PRs will
clean up any open Restyled PR. If you merge without fixing style, the
Restyle PR will be left.
  • Loading branch information
pbrisbin committed Sep 24, 2024
1 parent 267ea32 commit 87cc9fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
restyled:
if: ${{ github.event.pull_request.merged != true }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 87cc9fc

Please sign in to comment.