Skip to content
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

Build and Publish docs only if there are no broken links #369

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

dpoulopoulos
Copy link
Contributor

@dpoulopoulos dpoulopoulos commented Nov 14, 2024

What's changing

Currently, we have two separate workflows related to documentation:

  • A workflow that checks for broken links in Markdown or reStructuredText files.
  • A workflow that builds and publishes the documentation on GitHub Pages.

However, we don't want the second workflow to run if the first one fails, as this would result in broken links being published on the documentation page.

Make the "Build and publish docs" workflow depend on the successful completion of the "Link checker" workflow to address this issue.

Closes #368

@dpoulopoulos dpoulopoulos added bug Something isn't working documentation Improvements or additions to documentation gha GitHub actions related labels Nov 14, 2024
@dpoulopoulos dpoulopoulos self-assigned this Nov 14, 2024
Currently, we have two workflows named "Build and publish docs."
The first workflow builds the documentation using Sphinx and publishes
it to GitHub Pages, while the second checks for broken links. As a
result, there is no unique reference for either workflow.

Rename the link checker GitHub action to make it uniquely identifiable
for use in other workflows.

Refs #368

Signed-off-by: Dimitris Poulopoulos <[email protected]>
Rename the GHA YAML files to begin with a verb that clearly
expresses their intent, for consistency.

Signed-off-by: Dimitris Poulopoulos <[email protected]>
Run the "Build and publish docs" workflow only if the "Link checker"
workflow completes successfully.

Closes #368

Signed-off-by: Dimitris Poulopoulos <[email protected]>
Copy link
Contributor

@peteski22 peteski22 left a comment

Choose a reason for hiding this comment

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

🙏🏼

@dpoulopoulos dpoulopoulos merged commit ca6a2ff into main Nov 14, 2024
7 checks passed
@dpoulopoulos dpoulopoulos deleted the workflow-runs branch November 14, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation gha GitHub actions related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build and publish docs only if there are no broken links
2 participants