Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix preview cleanup #303

Merged
merged 1 commit into from
Apr 8, 2024
Merged

ci: fix preview cleanup #303

merged 1 commit into from
Apr 8, 2024

Conversation

katexochen
Copy link
Member

Bug was that on PR close event, ref_name is already main. New expression tries to match the non-preview event and negates it instead, hope that's a bit more robust.

Bug was that on PR close event, ref_name is already main. New expression
tries to match the non-preview event and negates it instead, hope that's
a bit more robust.

Signed-off-by: Paul Meyer <[email protected]>
@katexochen katexochen added the no changelog PRs not listed in the release notes label Apr 8, 2024
@katexochen katexochen requested review from malt3 and burgerdev April 8, 2024 08:41
Copy link

github-actions bot commented Apr 8, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-04-08 10:53 UTC

Copy link
Contributor

@burgerdev burgerdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the closed trigger actually do something useful? If not, we could just omit it instead.

@katexochen
Copy link
Member Author

Does the closed trigger actually do something useful? If not, we could just omit it instead.

Yes, the pr-preview should be deleted on PR close (that's the bug I'm trying to fix here).

@katexochen
Copy link
Member Author

Did a manual cleanup of the leftovers in 33a8129

@katexochen katexochen merged commit 7967fbf into main Apr 8, 2024
8 of 9 checks passed
@katexochen katexochen deleted the p/fix-preview-cleanup branch April 8, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs not listed in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants