Skip to content

Commit

Permalink
docs: update deleting deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
andykenward authored Apr 19, 2024
1 parent c213120 commit 56e7d8a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ jobs:

## Deleting Deployments

If on the `main` branch the last 5 deployments will not be deleted.

Other branche deployments are only deleted when the GitHub Action Event triggered is `pull_request` and the event payload action is `closed`.

It will only delete deployments that it created. This is because it requires a certain payload in a GitHub deployment response.
See the sub-action [`unlike-ltd/github-actions-cloudflare-pages/delete`](./delete/README.md) about deleting deployments.

### GitHub Deployment payload example response

Expand Down

0 comments on commit 56e7d8a

Please sign in to comment.