Problem
The workflow_run trigger in .github/workflows/release.yml has two issues that prevent the release workflow from ever executing:
-
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.
-
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