-
Notifications
You must be signed in to change notification settings - Fork 46
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
Preview URL in comment doesn't match Enterprise deployment URL #82
Comments
Sorry I missed the docs where I could configure the |
Reopening this as a bug just in case. While I've not personally seen a
Does If all looks good, I'll leave this issue open as a documentation task as it'd be good to mention for enterprise users. |
@rossjrw yes, using |
Works for me, thanks for the update! |
I have issues when using the action on an enterprise instance. [PR Preview Action](https://<gh-enterprise-host>/rossjrw/pr-preview-action) v1.4.7
:---:
:rocket: Deployed preview to https://<org>.github.io/<repository>/pr-preview/pr-1/
on branch [`gh-pages`](https://<gh-enterprise-host>/<org>/<repository>/tree/gh-pages) at 2024-09-17 07:30 UTC
<!-- Sticky Pull Request Commentpr-preview -->
I try to fix 2 with a |
Resolves bug on enterprise instances where this action would appear to originate from the instance (#82)
@CCFenner Thanks for the report! Issue 1 fixed in v1.4.8 by hardcoding this action's base URL to github.com. Issue 2 is tougher. I didn't see any documentation indicating that the Pages for an enterprise instance is definitely hosted at a |
It's mentioned here https://docs.github.com/en/[email protected]/pages/getting-started-with-github-pages/about-github-pages#types-of-github-pages-sites |
Aha, thank you! Given that starting point it looks like the only reliable way to detect the Pages URL on Enterprise would be via the Octokit API, which does seem feasible. Unfortunately it doesn't look like I'm going to be able to set up automated testing of this action on Enterprise (https://github.com/orgs/community/discussions/47057). |
I'm working on a private repo so I hope you not having access to it won't be an issue, but what I'm facing right now is that the comment gives me the following content:
Deployed preview to https://noimosai.github.io/noimos-ui-kit/pr-preview/pr-18/
However this link doesn't work and gives me a 404. I checked the
gh-pages
branch and the content is there. Apparently it is a new GitHub thing or I configured something wrong but my actual deployment is another URL:https://friendly-adventure-lnjz19e.pages.github.io/
and I can access the preview content using the adapted URLhttps://friendly-adventure-lnjz19e.pages.github.io/pr-preview/pr-18/
Here is my config:
Did I configure something wrong ?
The text was updated successfully, but these errors were encountered: