You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to update the deploy PR comment when cleaning up, showing
that the deployment was removed. This completes the deployment lifecycle
in the PR conversation.
New inputs:
- update-pr-comment: Enable PR comment updating (default: false)
- comment-header: Header to find the original comment
New output:
- pr-comment-updated: Whether the comment was updated
The comment changes from:
"## 🚀 Preview Deployment" → "## 🧹 Preview Deployment (Cleaned Up)"
And shows the URL as strikethrough to indicate it's no longer available.
**Note:** The default `GITHUB_TOKEN` cannot delete GitHub environments. You need a Personal Access Token (PAT) or GitHub App token with admin permissions for the repository.
109
138
@@ -186,6 +215,7 @@ Check cleanup results and take action:
186
215
2. **Delete GitHub Deployments** (optional): Marks all deployments for the environment as inactive, then deletes them
187
216
3. **Delete GitHub Environment** (optional): Deletes the GitHub environment
188
217
4. **Delete Container Image** (optional): Finds and deletes the container version with the specified tag
218
+
5. **Update PR Comment** (optional): Updates the deploy comment to show cleanup status
189
219
190
220
Each step runs independently and won't fail the action if it fails (cleanup is best-effort). Check the outputs to see what was actually deleted.
0 commit comments