diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 4d7ea76..52de57d 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -76,7 +76,7 @@ jobs: destroy: runs-on: ubuntu-latest # Run if PR is closed. - if: github.event.pull_request.closed_at != null + if: contains( github.event.pull_request.labels.*.name, 'preview') && github.event.pull_request.closed_at != null permissions: contents: "read" id-token: "write"