Skip to content

fix: workflow_run trigger in release.yml will never fire due to incompatible branches filter and wrong workflow reference #62

@coderabbitai

Description

@coderabbitai

Problem

The workflow_run trigger in .github/workflows/release.yml has two issues that prevent the release workflow from ever executing:

  1. Incompatible branches filter: The docker-release.yml workflow triggers on push events for tags: ['v*'], not on branch pushes. The branches: [main] filter in release.yml will never match because tag push events don't carry a branch context.

  2. Wrong workflow reference: The workflows key references the filename ("docker-release.yml") instead of the workflow's declared name ("Build and Push Docker Image"). GitHub matches workflow_run triggers by workflow name, not filename.

Proposed Fix

 on:
   workflow_run:
-    workflows: ["docker-release.yml"]
+    workflows: ["Build and Push Docker Image"]
     types: [completed]
-    branches: [main]

References

/cc @Delgado74

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions