-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Problem
The deploy workflow triggers on ANY push to main, including PRs that only change GitHub workflow files (.github/workflows/*.yml). This causes unnecessary subgraph deployments that can break the /version/latest alias in The Graph Studio if left unpublished.
Proposed Solution
Add a paths filter to the deploy workflow so it only triggers when actual subgraph code changes:
on:
push:
branches: ["main"]
paths:
- 'schema.graphql'
- 'src/**'
- 'subgraph.*.yaml'
- 'package.json'
- 'networks.json'
- 'abis/**'
workflow_dispatch:Considerations
workflow_dispatchis preserved so manual deployments are still possible- This would have prevented the Jan 2026 incident where workflow-only PRs (chore: add auto-project workflow #114, chore: add reopen-issue-if-prs-open workflow #115, chore: remove pull_request trigger from auto-project workflow #116) triggered deployments that broke the requestNetwork build
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🎫 Backlog