Skip to content

Conversation

@HadwaAbdelhalem
Copy link
Collaborator

Description

This PR optimizes the CI-Deploy workflow by adding paths-ignore filters to skip infrastructure provisioning and deployment when changes are limited to documentation and non-functional files to reduce unnecessary pipeline runs.

Benefits
✅ Consistent behavior - Same paths ignored for both PR and merge to main
✅ Reduced CI costs - Skips workflow for documentation-only changes
✅ Logical separation - cicd infrastructure changes won't trigger app deployments
✅ Markdown exclusion - README, CHANGELOG updates won't trigger expensive infrastructure provisioning

What Gets Skipped
The workflow will NOT run if changes are only in:

  • docs directory (documentation)
  • decision-log directory (ADRs)
  • cicd directory (CI/CD infrastructure Terraform)
  • Root-level markdown files (README.md, CHANGELOG.md, etc.)
  • What Still Triggers

The workflow WILL run for changes in:

  • infra - Main application infrastructure
  • src - Source code
  • workflows - This workflow itself
  • azd-hooks - Deployment hooks
  • tests - Test files
  • Any other files not in the ignore list

Edge Cases Covered
✅ Mixed changes (e.g., code + docs) → Workflow runs
✅ Documentation-only changes → Workflow skips
✅ workflow_dispatch manual triggers → Always runs (not affected by paths-ignore)

Related Issue(s)

Resolves #346
Closes #346

@HadwaAbdelhalem HadwaAbdelhalem self-assigned this Dec 16, 2025
@HadwaAbdelhalem HadwaAbdelhalem requested a review from a team as a code owner December 16, 2025 23:25
Copilot AI review requested due to automatic review settings December 16, 2025 23:25
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 the CI-Deploy workflow by adding paths-ignore filters to skip expensive infrastructure provisioning and deployment runs when changes are limited to documentation and metadata files. The implementation applies consistent filtering rules to both push and pull_request triggers, reducing CI costs while maintaining full coverage for functional code changes.

Key changes:

  • Added identical paths-ignore configurations to both push and pull_request triggers, filtering out docs/**, decision-log/**, cicd/**, and root-level *.md files
  • Cleaned up trailing whitespace on several lines throughout the workflow file
  • Preserved critical trigger paths: workflow runs for changes to infra/, src/, .github/workflows/, azd-hooks/, tests/, and any other non-ignored paths

@HadwaAbdelhalem HadwaAbdelhalem merged commit 1699a68 into main Dec 17, 2025
8 checks passed
@HadwaAbdelhalem HadwaAbdelhalem deleted the hadwa/add_ci_exclusions branch December 17, 2025 18:30
devorekristen added a commit that referenced this pull request Dec 17, 2025
* Cross linked the CAIRA repository

* Bump the terraform-provider versions (#347)

* chore(deps): bump the terraform-providers group across 2 directories with 2 updates

Bumps the terraform-providers group with 2 updates in the /infra directory: [hashicorp/azurerm](https://github.com/hashicorp/terraform-provider-azurerm) and [microsoft/power-platform](https://github.com/microsoft/terraform-provider-power-platform).
Bumps the terraform-providers group with 2 updates in the /infra/modules/copilot_studio directory: [hashicorp/azurerm](https://github.com/hashicorp/terraform-provider-azurerm) and [microsoft/power-platform](https://github.com/microsoft/terraform-provider-power-platform).


Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

---
updated-dependencies:
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps): remove no longer supported  "maker onboarding" related variables from power platform managed environment as platform provider version upgrade to v4.0.0

* readd missing description for power_platform_managed_environment variable

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hadwa Gaber <[email protected]>

* chore(ci): update paths-ignore for main and pull_request triggers in azure-dev.yml (#348)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Kristen DeVore <[email protected]>
Co-authored-by: Ian Jensen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hadwa Gaber <[email protected]>
devorekristen added a commit that referenced this pull request Dec 22, 2025
* Cross linked the CAIRA repository

* Bump the terraform-provider versions (#347)

* chore(deps): bump the terraform-providers group across 2 directories with 2 updates

Bumps the terraform-providers group with 2 updates in the /infra directory: [hashicorp/azurerm](https://github.com/hashicorp/terraform-provider-azurerm) and [microsoft/power-platform](https://github.com/microsoft/terraform-provider-power-platform).
Bumps the terraform-providers group with 2 updates in the /infra/modules/copilot_studio directory: [hashicorp/azurerm](https://github.com/hashicorp/terraform-provider-azurerm) and [microsoft/power-platform](https://github.com/microsoft/terraform-provider-power-platform).


Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

Updates `hashicorp/azurerm` from 4.55.0 to 4.56.0
- [Release notes](https://github.com/hashicorp/terraform-provider-azurerm/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-provider-azurerm@v4.55.0...v4.56.0)

Updates `microsoft/power-platform` from 3.9.1 to 4.0.0
- [Release notes](https://github.com/microsoft/terraform-provider-power-platform/releases)
- [Changelog](https://github.com/microsoft/terraform-provider-power-platform/blob/main/CHANGELOG.md)
- [Commits](microsoft/terraform-provider-power-platform@v3.9.1...v4.0.0)

---
updated-dependencies:
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
- dependency-name: hashicorp/azurerm
  dependency-version: 4.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: terraform-providers
- dependency-name: microsoft/power-platform
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: terraform-providers
...



* chore(deps): remove no longer supported  "maker onboarding" related variables from power platform managed environment as platform provider version upgrade to v4.0.0

* readd missing description for power_platform_managed_environment variable

---------





* chore(ci): update paths-ignore for main and pull_request triggers in azure-dev.yml (#348)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Court <[email protected]>
Co-authored-by: Ian Jensen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hadwa Gaber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Path exclusions to prevent deploy pipeline from execution if changes are non-code PR's

4 participants