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

GitHub Actions bot environment links expire #697

Open
KnorpelSenf opened this issue Dec 11, 2021 · 1 comment
Open

GitHub Actions bot environment links expire #697

KnorpelSenf opened this issue Dec 11, 2021 · 1 comment

Comments

@KnorpelSenf
Copy link

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: grammyjs/website#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
Copy link
Author

KnorpelSenf commented Dec 15, 2021

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

I will leave this open for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant