Skip to content

CI - Add path filter to deploy workflow #117

@MantisClone

Description

@MantisClone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🎫 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions