Skip to content

Commit

Permalink
fixup! Handle closed PR actions in Restyled workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Sep 24, 2024
1 parent cd50bd1 commit 6e0ff87
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ name: Restyled
on:
pull_request:
types:
# Types when we want to Restyle
- opened
- closed
- reopened
- synchronize

# So we can clean up if necessary
- closed

jobs:
restyled:
runs-on: ubuntu-latest
Expand All @@ -36,9 +33,3 @@ jobs:
labels: restyled
reviewers: ${{ github.event.pull_request.user.login }}
delete-branch: true
- if: ${{ github.event.pull_request.state == 'closed' }}
run: gh pr close --delete-branch "$RESTYLED_BRANCH" || true
env:
RESTYLED_BRANCH: ${{ steps.restyler.outputs.restyled-head }}
GH_TOKEN: ${{ github.token }}

0 comments on commit 6e0ff87

Please sign in to comment.