Cleanup is not happening as it should on PR close #77
Answered
by
rossjrw
xaviergmail
asked this question in
Q&A
|
We currently have 200+ orphaned directories under our PR previews. The action runs, but nothing is being deleted. Here is the output: |
Answered by
rossjrw
Jan 26, 2024
Replies: 1 comment 4 replies
|
Moved to Discussion as this is a question about a setup issue rather than a problem with the action itself. (If a problem with the action is discovered as part of this discussion then create an issue for that.) @xaviergmail I'm assuming this is from a private repository; regardless, this isn't enough information for me to work out what's happening here. With your repo's anonymity in mind, could you please share:
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@xaviergmail If your workflow file is accurate, it looks like you've split the preview deployment and the preview removal across 2 jobs - which is fine! It could even be good to specify
action: removeon the 2nd one just to make it clear what the difference is.It looks like your issue originates from that the 1st action usage has its
umbrella-dirset to the default value ofpr-previewand the 2nd one haspr-previewsspecified, so they're targeting different directories. Fix would be to remove that parameter from the 2nd one then checkout gh-pages and remove the orphaned previews.