Skip to content

Update workflow triggers to include specific paths for push events#318

Merged
shibayan merged 1 commit intomasterfrom
update-trigger-condition
Mar 8, 2026
Merged

Update workflow triggers to include specific paths for push events#318
shibayan merged 1 commit intomasterfrom
update-trigger-condition

Conversation

@shibayan
Copy link
Member

@shibayan shibayan commented Mar 8, 2026

This pull request updates the GitHub Actions workflow triggers to optimize when builds and documentation deployments run. The changes ensure that workflows only execute when relevant files are modified, reducing unnecessary runs and improving CI efficiency.

Workflow trigger improvements:

  • .github/workflows/build.yml: Added paths filters for both push and pull_request events so the build workflow only runs when .editorconfig, files in src/**, or the workflow file itself are changed. Also expanded pull_request types to include opened, reopened, synchronize, and ready_for_review.
  • .github/workflows/docs.yml: Added paths filters for the push event so the docs deployment workflow only runs when files in docs/** or the workflow file itself are changed.

@shibayan shibayan requested a review from Copilot March 8, 2026 12:37
@shibayan shibayan self-assigned this Mar 8, 2026
@shibayan shibayan added the enhancement New feature or request label Mar 8, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes CI execution by adding paths filters to GitHub Actions workflow triggers so builds and docs deployments only run when relevant files change.

Changes:

  • Add paths filters to the build workflow for both push and pull_request events (and expand pull_request event types).
  • Add paths filters to the docs deployment workflow for push events to master.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/build.yml Restricts build/test/lint runs to changes in .editorconfig, src/**, or the workflow file; expands PR trigger types.
.github/workflows/docs.yml Restricts docs deployment runs to changes in docs/** or the workflow file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shibayan shibayan merged commit b9c00c4 into master Mar 8, 2026
8 checks passed
@shibayan shibayan deleted the update-trigger-condition branch March 8, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants