Cleanup is not happening as it should on PR close #77
-
We currently have 200+ orphaned directories under our PR previews. The action runs, but nothing is being deleted. Here is the output:
|
Beta Was this translation helpful? Give feedback.
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:
|
Beta Was this translation helpful? Give feedback.
@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: remove
on 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-dir
set to the default value ofpr-preview
and the 2nd one haspr-previews
specified, 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.