Skip to content

Migrating Hugo modules and Discourse data updates worflows - #969

Open
MuhammadAashirAslam wants to merge 3 commits into
precice:hugofrom
MuhammadAashirAslam:hugo-automation
Open

Migrating Hugo modules and Discourse data updates worflows#969
MuhammadAashirAslam wants to merge 3 commits into
precice:hugofrom
MuhammadAashirAslam:hugo-automation

Conversation

@MuhammadAashirAslam

Copy link
Copy Markdown
Collaborator

Replaces the obsolete submodule updater with automated Hugo Module synchronization using go.mod and go.sum. Updates the Discourse news and FAQ data workflows for Hugo’s static/assets paths, and removes the retired submodule workflow.

@MakisH MakisH added the technical Technical issues on the website label Aug 11, 2026
MuhammadAashirAslam added a commit to MuhammadAashirAslam/precice.github.io that referenced this pull request Aug 13, 2026
@MuhammadAashirAslam
MuhammadAashirAslam requested a balanced review from Copilot August 13, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MakisH
MakisH requested a balanced review from Copilot August 13, 2026 11:43
Comment on lines +38 to +41
if git diff --cached --quiet; then
echo "Discourse data is already up to date."
exit 0
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the current approach, the workflow is a bit more verbose than needed, because of the following fields:

  • "generated_at": "2026-08-12T07:18:28.922820",
  • "views": 2451,

Could we exclude these?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that other repositories trigger the update-submodules.yml. Maybe keep the same name?

https://github.com/precice/tutorials/blob/develop/.github/workflows/update-website.yml

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done e1c2afc

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.github/workflows/update-hugo-modules.yml:1

  • The retired workflow is still the documented update path: content/docs/docs-meta/overview.md:136-151 tells contributors to manage submodules and links directly to update-submodules.yml, while README.md:22-28 also instructs them to update submodules. Once this workflow is deleted, that link is dead and following the documented process will not update the Hugo modules. Please migrate these instructions to module.toml/go.mod and the new workflow as part of this change.
name: Update Hugo modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical Technical issues on the website

Projects

Development

Successfully merging this pull request may close these issues.

3 participants