Skip to content

Fail if GitHub Pages is not correctly configured#37

Merged
manuq merged 1 commit intomainfrom
fail-if-pages-not-enabled
Jul 1, 2025
Merged

Fail if GitHub Pages is not correctly configured#37
manuq merged 1 commit intomainfrom
fail-if-pages-not-enabled

Conversation

@wjt
Copy link
Copy Markdown
Member

@wjt wjt commented Jul 1, 2025

Previously, the actions/deploy-pages@v4 step would fail with a hard-to-understand error message if the repo is not configured to have GitHub Pages published from Actions.

Add a check at the start of the composite action, and fail the whole job if the repo is misconfigured, having emitted a summary explaining the problem. Since Actions workflows are disabled on forks by default, it seems OK to make this a hard failure: if someone has gone to the trouble of enabling Actions on their fork of a project using this action, then they presumably would like to be told why it isn't working.

Previously, the actions/deploy-pages@v4 step would fail with a
hard-to-understand error message if the repo is not configured to have
GitHub Pages published from Actions.

Add a check at the start of the composite action, and fail the whole job
if the repo is misconfigured, having emitted a summary explaining the
problem. Since Actions workflows are disabled on forks by default, it
seems OK to make this a hard failure: if someone has gone to the trouble
of enabling Actions on their fork of a project using this action, then
they presumably would like to be told why it isn't working.
@wjt wjt requested a review from manuq July 1, 2025 13:36
@wjt
Copy link
Copy Markdown
Member Author

wjt commented Jul 1, 2025

@wjt wjt moved this to In Progress in Threadbare Development Jul 1, 2025
@wjt wjt self-assigned this Jul 1, 2025
Copy link
Copy Markdown
Contributor

@manuq manuq left a comment

Choose a reason for hiding this comment

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

Awesome, the error is right there in the summary, no need to check for the workflow output.

@manuq manuq merged commit 9226477 into main Jul 1, 2025
1 check passed
@manuq manuq deleted the fail-if-pages-not-enabled branch July 1, 2025 14:03
@github-project-automation github-project-automation bot moved this from In Progress to Done in Threadbare Development Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants