Skip to content

CI: stop triggering main validation workflow on release tags#63

Merged
mbe24 merged 2 commits into
mainfrom
copilot/remove-tag-trigger-ci-workflow
Mar 11, 2026
Merged

CI: stop triggering main validation workflow on release tags#63
mbe24 merged 2 commits into
mainfrom
copilot/remove-tag-trigger-ci-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 11, 2026

Tag pushes (v*) were starting both CI and Release workflows, creating duplicate runs for commits already validated on main. This change keeps CI scoped to PR/main validation and leaves tag-driven/manual release behavior in the release workflow.

  • Trigger scope adjustment (.github/workflows/ci.yml)

    • Removed push.tags: ["v*"] from CI workflow triggers.
    • Kept pull_request and push on main unchanged.
  • Release flow preserved (.github/workflows/release.yml)

    • No trigger changes: release still runs on v* tags and workflow_dispatch.
  • Resulting event ownership

    • CI owns branch/PR quality gates.
    • Release owns tag-based publishing.
# .github/workflows/ci.yml
on:
  pull_request:
    branches: ["main"]
  push:
    branches: ["main"]
Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature] Stop CI from running on release tags to avoid duplicate builds</issue_title>
<issue_description>### Problem

Pushing a release tag (for example v0.4.0) currently triggers both:

  1. the regular CI workflow, and
  2. the release workflow.

Because the tagged commit has already run CI on main, this duplicates compute/time and adds noise in Actions history.

Design

Keep responsibilities split:

  1. CI workflow handles PR and main branch validation.
  2. Release workflow handles tag-based release execution.

Implement by removing tag-trigger activation from ci.yml, while keeping tag trigger in release.yml.

Scope

  • Remove push.tags: ["v*"] from .github/workflows/ci.yml.
  • Keep all existing CI jobs/conditions unchanged.
  • Keep .github/workflows/release.yml triggers unchanged.

Boundary

  • No changes to release publishing steps.
  • No new workflows.
  • No change to branch/PR CI quality gates.

Acceptance Criteria

  • Push to main triggers CI as before.
  • Push of v* tag triggers Release workflow.
  • Push of v* tag no longer triggers CI workflow.
  • Manual release via workflow_dispatch remains functional.

Context

This is a small workflow trigger cleanup that reduces duplicate builds while preserving current release behavior.

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: mbe24 <7420624+mbe24@users.noreply.github.com>
Copilot AI changed the title [WIP] Stop CI from running on release tags to avoid duplicates CI: stop triggering main validation workflow on release tags Mar 11, 2026
@mbe24 mbe24 marked this pull request as ready for review March 11, 2026 14:25
@mbe24 mbe24 merged commit aed9ee0 into main Mar 11, 2026
5 checks passed
@mbe24 mbe24 deleted the copilot/remove-tag-trigger-ci-workflow branch March 11, 2026 14:33
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.

[Feature] Stop CI from running on release tags to avoid duplicate builds

2 participants