Skip to content

Cleanup is not happening as it should on PR close #77

Answered by rossjrw
xaviergmail asked this question in Q&A
Discussion options

You must be logged in to vote

@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 of pr-preview and the 2nd one has pr-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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@xaviergmail
Comment options

@rossjrw
Comment options

Answer selected by xaviergmail
@xaviergmail
Comment options

@rossjrw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #76 on January 25, 2024 12:15.