From 79cfc933ce131f62bd378ea33ac505be63a65242 Mon Sep 17 00:00:00 2001 From: "Nelo-T. Wallus" Date: Fri, 22 Aug 2025 16:24:59 +0200 Subject: [PATCH] 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 Signed-off-by: Nelo-T. Wallus --- .github/workflows/pages.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index f865776..ac22859 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -25,18 +25,8 @@ concurrency: jobs: - delete-preview: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - steps: - - uses: rossjrw/pr-preview-action@9f77b1d057b494e662c50b8ca40ecc63f21e0887 # v1 - with: - action: remove - build: runs-on: ubuntu-latest - # only build on main or if the PR is open - if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.event.action != 'closed') steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 with: