GH Actions/update-website: stop submitting test PRs on workflow update #999
+6
−6
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.
Pull Request Type
Detailed Description
Currently, the
update-websiteworkflow doesn't deploy the website straight away. Instead it opens a PR with the files which will be changed to allow for review of the website changes before deploying the updated website (by merging the PR).To that end, the workflow is run:
What with the frequent Dependabot updates, this has become quite noisy for the "pull request which changes the workflow" trigger.
To that end, this commit blocks the opening of the PR when the workflow/doc building files are changed, while still running the rest of the workflow to verify that the workflow wasn't broken by the changes.
It also introduces a new step to create the branch holding the changes in the local environment.
This was previously done via the "create PR" step, which will now be skipped, while we still need the branch for verifying Ruby can build the GH Pages site.
As the branch should now be checked-out already before we even get to the part of the workflow verifying the site can be build via GH Pages, we can also remove the separate
actions/checkoutstep.