-
Notifications
You must be signed in to change notification settings - Fork 5
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
ci: better support PR from fork for preview build and ref validation #698
ci: better support PR from fork for preview build and ref validation #698
Conversation
Only valid for a branch preview for a component. This allows you to use an alternative URL to the one configured for the component, in particular to use a fork.
♻️ PR Preview 1bd62c0 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
♻️ PR Preview 1bd62c0 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
…ork repo url (again) [skip ci]
…o support It is still possible to pass a custom build preview command (no change for workflow using this action).
…iscovery is completed [skip ci]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job 👍
…ss the component-name
Quality Gate passedIssues Measures |
This applies to the "build preview" and the "references validation". The content of the branch of the fork is now correctly used. Previously, the branch of the fork wasn't found by Antora, so the content of the generated site was empty. ### Notes Covers bonitasoft/bonita-documentation-site#402 This depends on bonitasoft/bonita-documentation-site#698
Let pass the git repo url to the preview script:
The "build-and-publish-pr-preview" and the "build-pr-site" (used for references validation) actions set this new argument to use the git URL of the branch of the PR
This ensures that the git URL of the repository whose the PR is originated from is used (fork or upstream repository).
Covers #402
Notes
Validation done for