-
Notifications
You must be signed in to change notification settings - Fork 916
Skip ci build on documentation changes #4099
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
Skip ci build on documentation changes #4099
Conversation
0b38fd0
to
8d54cff
Compare
Successful builds are required for the merge, so I don't think we can skip the build even in those cases. |
8d54cff
to
1acd2d2
Compare
1acd2d2
to
0b93f82
Compare
Hi @debora-ito, With this change the builds won't be required just the Code owner review. Building when these files are edited should be no different than the last master build. I've put together a demo repo with an action that configures pull_request:
paths-ignore:
- '**.md'
- '.i-am-a-hidden-file'
- 'docs/**' Result: |
p.s. I removed |
I haven't added a changelog entry as it's not really any of |
Kudos, SonarCloud Quality Gate passed! |
Co-authored-by: Anna-Karin Salander <[email protected]>
@StephenFlavin just a quick update: looks like it didn't work, successful codebuilds are still required - example: #4276 Maybe there's some sort of precedence in the rules? Let me know if you have any thoughts. |
It's possible that it's a branch protection rule from doing some reading but only repo admins will have access to check |
Motivation and Context
Changes that only include documentation
or scriptsshouldn't cause/require a code builde.g. allcontributors pulls only modify
.all-contributorsrc
andREADME.md
Modifications
Configures
paths-ignore
in.github/workflows/codebuild-ci.yml
to skip useless buildsTypes of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License