Skip to content

Commit 1269895

Browse files
authored
Fix preview-cleanup.yml (#334)
We can delete all deployments to clean-up the UI, but we cannot delete the environment. We need a GH PAT for that with permissions to delete environments. This is okay for now.
1 parent e7c4f02 commit 1269895

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/preview-cleanup.yml

-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ permissions:
1111
jobs:
1212
cleanup:
1313
runs-on: ubuntu-latest
14-
environment: preview-${{ github.event.pull_request.number }}
1514
steps:
1615
- uses: actions/checkout@v4
1716
- uses: ./.github/actions/aws-auth
@@ -46,11 +45,5 @@ jobs:
4645
});
4746
}
4847
49-
await github.rest.repos.deleteAnEnvironment({
50-
owner,
51-
repo,
52-
environment_name: `preview-${context.issue.number}`,
53-
});
54-
5548
5649

0 commit comments

Comments
 (0)