Skip to content

Conversation

@raisedadead
Copy link
Member

No description provided.

Add path-based trigger filters to Terraform and Ansible workflows to ensure they only run when relevant files are modified. This optimization:

- Terraform workflow now only triggers on changes to terraform/** or the workflow file itself
- Ansible test workflow now only triggers on changes to ansible/** or the workflow file itself
- Prevents unnecessary CI runs for unrelated changes (e.g., Renovate dependency updates)
- Maintains workflow_dispatch for manual triggers without path restrictions

This ensures that automated tools like Renovate won't trigger breaking changes in unrelated infrastructure components.
@raisedadead raisedadead requested a review from a team as a code owner November 13, 2025 06:51
@github-actions
Copy link

Run Details - tfws-ops-test

Terraform Cloud Plan Output

Plan: 6 to add, 0 to change, 0 to destroy.

Details : https://app.terraform.io/app/freecodecamp/workspaces/tfws-ops-test/runs/run-pffKYhC1sehYSPaA

Warning

Please note that the plan output provided may not accurately reflect the impact on the Terraform project you are currently working on in this Pull Request. The CI checks are merely a sanity test to verify that the versions in the lock file are valid and functional.

Confirm the actual Terraform plan by running the corresponding project on your machine or on TFC.

@raisedadead raisedadead deleted the claude/optimize-github-workflows-011CV5SSAL8arY7KHVn7oTU9 branch November 13, 2025 09:51
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.

3 participants