Skip to content

fix: trigger server release workflows on workflow changes#1939

Merged
monadoid merged 1 commit intomainfrom
fix_server_release_triggers
Mar 31, 2026
Merged

fix: trigger server release workflows on workflow changes#1939
monadoid merged 1 commit intomainfrom
fix_server_release_triggers

Conversation

@monadoid
Copy link
Copy Markdown
Contributor

@monadoid monadoid commented Mar 31, 2026

Trigger the server-v3 and server-v4 release workflows when their workflow files change, and ignore deleted changeset files during release detection.


Summary by cubic

Make server-v3 and server-v4 release workflows run when their own workflow files change, and prevent false releases by ignoring deleted changeset files.

  • Bug Fixes
    • Trigger on changes to .github/workflows/stagehand-server-v3-release.yml and .github/workflows/stagehand-server-v4-release.yml on pushes to main.
    • Use git diff --diff-filter=d so removed .changeset/*.md files don’t count as changes.

Written for commit 3f5911a. Summary will update on new commits. Review in cubic

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

⚠️ No Changeset found

Latest commit: 3f5911a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@monadoid monadoid marked this pull request as ready for review March 31, 2026 21:15
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant Dev as Developer
    participant GHA as GitHub Actions Trigger
    participant Runner as Release Workflow Runner
    participant Git as Git CLI

    Dev->>GHA: Push to main
    
    Note over GHA: Evaluates path filters
    alt NEW: Workflow file changed OR .changeset/*.md changed
        GHA->>Runner: Start Release Job (v3 or v4)
        
        Runner->>Git: Fetch latest release tag
        Git-->>Runner: latest_tag (e.g., stagehand-server-v3/v1.0.0)
        
        Note over Runner,Git: Identify pending changes
        Runner->>Git: CHANGED: git diff --diff-filter=d --name-only
        Note right of Git: --diff-filter=d ignores files that<br/>were deleted in the current branch
        
        Git-->>Runner: List of added/modified .changeset/*.md files
        
        alt Changes detected
            Runner->>Runner: Execute Build & Publish tasks
        else Only deletions or no changes detected
            Runner->>Runner: Terminate (No new release needed)
        end
    else No relevant paths changed
        GHA-->>Dev: No workflow triggered
    end
Loading

@monadoid monadoid merged commit d55aedd into main Mar 31, 2026
32 checks passed
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.

2 participants