Skip to content

Commit 79cfc93

Browse files
committed
Remove delete-preview
So delete-preview fails because the action still runs git commands even though it only should delete the preview folder. However previews were still cleaned up because the github.event.action conditional didn't work and the action to deploy previews then correctly cleaned the preview up. Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent 29f64a9 commit 79cfc93

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

.github/workflows/pages.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,8 @@ concurrency:
2525

2626
jobs:
2727

28-
delete-preview:
29-
if: github.event_name == 'pull_request' && github.event.action == 'closed'
30-
runs-on: ubuntu-latest
31-
steps:
32-
- uses: rossjrw/pr-preview-action@9f77b1d057b494e662c50b8ca40ecc63f21e0887 # v1
33-
with:
34-
action: remove
35-
3628
build:
3729
runs-on: ubuntu-latest
38-
# only build on main or if the PR is open
39-
if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.action != 'closed')
4030
steps:
4131
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
4232
with:

0 commit comments

Comments
 (0)