nwtgck / actions-netlify

🚀 Netlify deploy from GitHub Actions
MIT License
332 stars 40 forks source link

GitHub Actions bot environment links expire #697

Open KnorpelSenf opened 2 years ago

KnorpelSenf commented 2 years ago

I'm using this to build deployment previews for pull requests. I have found that the GitHub Actions bot also puts an environment link on the PR whenever CI runs successfully. I find those links less distracting than having the bot actually comment a regular PR comment with the Netlify link. Hence, this is what I'm using as config: https://github.com/grammyjs/website/blob/b3c08dedba6c2254912866c683621b847aa06084/.github/workflows/deno.yml#L32

However, even though the Netlify links are persistent, these environments seem to expire after a few hours (something between 1 and 5). Note that I don't mean old links after new activity. When the PR is inactive for a few hours, the bot somehow removes the link, AVE the message changes to "temporarily deployed to pull request". There's currently an example here: https://github.com/grammyjs/website/pull/146

Is there any configuration I can use to prevent the bot from removing the links?

If there's no way, I'll just go back to having it comment regular text comments.

KnorpelSenf commented 2 years ago

I circumvented the issue by simply enabling pull request comments now.

I will leave this open for future reference.