HDDS-11871. Update Publish Ozone docs workflow for HDDS-11365 #108
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
1.
edgedocs are not updated in the website.hdds-docsto the website.asf-sitetomaster, effectively disabling the workflow (scheduled workflows need to be present in the default branch).masteras it was added in HDDS-7678.ozone-dev-supportmodule, which is not available when building only the docs.So workflow run fails with:
0c4abe6 fixes this by executing Hugo directly, bypassing Maven.
This is achieved by running the same command as
basic (docs)check in Ozone CI.2.
edgedocs are updated by the workflow even if no docs were changed.Last Modifiedtime and commit information.actions/checkoutclones the repo without history by default.Last Modifiedinformation is wrong, and workflow finds "changes" in doc every day.36f5488 fixes this by cloning
apache/ozonewith history.Since both fixes are one-liners, I bundled them in the same PR.
https://issues.apache.org/jira/browse/HDDS-11871
How was this patch tested?
Run 1: https://github.com/adoroszlai/ozone-site/actions/runs/12197628118
Doc update: adoroszlai@88c05d3
tools/debugRun 2: https://github.com/adoroszlai/ozone-site/actions/runs/12197847484
Doc update: none