{"id":47161,"date":"2024-09-30T06:14:37","date_gmt":"2024-09-30T06:14:37","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=47161"},"modified":"2024-09-30T06:14:37","modified_gmt":"2024-09-30T06:14:37","slug":"github-tutorials-builds-only-when-specific-directories-have-code-changes-include-exclude","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/github-tutorials-builds-only-when-specific-directories-have-code-changes-include-exclude\/","title":{"rendered":"GitHub Tutorials: Builds only when specific directories have code changes include \/ exclude"},"content":{"rendered":"\n<script src=\"https:\/\/gist.github.com\/devops-school\/a480edf607d685fd38469b1bc917f9cf.js\"><\/script>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>on.push.paths<\/code>: Specifies the directories\/files that should trigger the workflow. In this case, changes in the <code>src\/<\/code> or <code>scripts\/<\/code> directories will trigger the build.<\/li>\n\n\n\n<li><code>on.push.paths-ignore<\/code>: Specifies the directories\/files that should <strong>not<\/strong> trigger the workflow. If changes are only in the <code>docs\/<\/code> or <code>tests\/<\/code> directories, the build will be skipped.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Explanation:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-47161","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=47161"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47161\/revisions"}],"predecessor-version":[{"id":47162,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/47161\/revisions\/47162"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=47161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=47161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=47161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}