fix: Restrict deploy workflow to manual trigger only#82
Merged
Conversation
Remove push and pull_request triggers to prevent automatic resource provisioning. The workflow now only runs via workflow_dispatch. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Restricts the Azure deploy workflow to manual trigger only by removing automatic push and pull_request triggers, preventing unintended Azure resource provisioning on every push/PR.
Changes:
- Removes
pushtrigger (onmain/devbranches) fromazure-dev.yml - Removes
pull_requesttrigger (onmain) fromazure-dev.yml - Retains
workflow_dispatchas the sole trigger
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Prajwal-Microsoft
approved these changes
May 15, 2026
|
🎉 This PR is included in version 1.3.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
pushand/orpull_requesttriggers from the deploy workflow (azure-dev.yml). The workflow now only runs viaworkflow_dispatch(manual trigger).Why
The workflow runs
azd upwhich provisions Azure resources. Auto-triggering on every push/PR causes unintended resource provisioning without cleanup, leading to orphaned resource groups and unnecessary costs.