[GitHub Actions] Don't run tests or docker build if the only changes are to markdown files#12787
Merged
Merged
Conversation
paulo-graca
self-requested a review
July 16, 2026 14:33
paulo-graca
reviewed
Jul 16, 2026
paulo-graca
left a comment
Contributor
There was a problem hiding this comment.
Thank you, @tdonohue!
I have a few more suggestions below. What do you think?
That said, the PR, as is, it's a +1 from me.
Contributor
|
Note: If ported to |
Member
Author
|
Merging & porting to all active branches. Will also manually port to |
Contributor
|
Git push to origin failed for dspace-8_x with exitcode 1 |
Contributor
|
Git push to origin failed for dspace-9_x with exitcode 1 |
Contributor
|
Git push to origin failed for dspace-10_x with exitcode 1 |
This was referenced Jul 17, 2026
Member
Author
|
Ported to frontend repository in DSpace/dspace-angular#5966 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
References
Description
This small PR updates our GitHub actions to skip running any tests (both Unit and Integration) or Docker builds when a PR or commit only includes changes to Markdown files (
*.md).The reason for this PR is to streamline our ability to update Markdown files without triggering CI, e.g. with #12739
Known Side Effect:
While this will ensure that we don't unnecessarily run tests/builds, disabling these checks will mean that PRs which only modify Markdown (
*.md) will never receive a green checkmark from GitHub checks (as some checks will never complete).You can see an example of this "side effect" in #12739, which doesn't have a green checkmark as the
CodeQLtask is flagged asExpected -- Waiting for status to be reported. In this situation,CodeQLwill never run for PRs which only modify Markdown as it already haspaths-ignorerules incodescan.yml, see https://github.com/DSpace/DSpace/blob/main/.github/workflows/codescan.yml#L20(Personally, I'm OK with this side effect as it seems minor, but I wanted to make sure others agree.)
Instructions for Reviewers
If approved, this should be ported to
DSpace/dspace-angular, as it should similarly ignore PRs that only include changes to Markdown files.