-
Notifications
You must be signed in to change notification settings - Fork 336
fix: disable profile CI
when building reference docs
#2367
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,13 @@ function switch_to_tag() { | |
# Build the docs if switch is on | ||
function build_docs_if_applicable() { | ||
if [[ "${BUILD}" == "yes" ]] ; then | ||
./mvnw clean install -P docs -pl docs -DskipTests -q | ||
# Disable profile CI (inherited from spring-cloud-build/pom.xml) so | ||
# process-asciidoc can be executed in GH action runner. | ||
# Profile CI will be activated in GH action runner because | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel the profile name "CI" and its activation condition are bad. Is it clear why the profile "CI" is set up like that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CI profile was introduced based on this issue:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That assumption (pull request builds = GitHub Actions) is wrong. Now I know it's outside our codebase. |
||
# there's env.GITHUB_API_URL defined in the environment by | ||
# default. | ||
# See https://github.com/spring-cloud/spring-cloud-build/blob/v4.0.5/pom.xml#L1638-L1652. | ||
./mvnw clean install -P docs -P '!CI' -pl docs -DskipTests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @lqiu96's help for debugging the root cause of process-asciidoc is not executed in GH action runner. I intended to remove |
||
fi | ||
} | ||
|
||
|
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.
This is not needed because asciidoctor backend version is 0.0.5 and available on Maven central.