feat: add workflow_dispatch fallback for RC promotion (MokoGitea#220 workaround) #178

Closed
opened 2026-05-26 21:16:15 +00:00 by jmiller · 1 comment
Owner

Problem

MokoGitea#220: API-created PRs do not fire pull_request events. The promote-rc job in auto-release.yml only triggers on draft PR open events, so RC promotion never fires for API-created PRs.

No manual fallback exists.

Solution

Add a workflow_dispatch input to auto-release.yml that allows manual RC promotion:

on:
  workflow_dispatch:
    inputs:
      action:
        type: choice
        options:
          - release
          - promote-rc

When action=promote-rc, run the promote-rc job instead of the release job.

Files

  • .mokogitea/workflows/auto-release.yml
## Problem MokoGitea#220: API-created PRs do not fire pull_request events. The promote-rc job in auto-release.yml only triggers on draft PR open events, so RC promotion never fires for API-created PRs. No manual fallback exists. ## Solution Add a workflow_dispatch input to auto-release.yml that allows manual RC promotion: ```yaml on: workflow_dispatch: inputs: action: type: choice options: - release - promote-rc ``` When action=promote-rc, run the promote-rc job instead of the release job. ## Files - .mokogitea/workflows/auto-release.yml
jmiller added the ci-cdbuildpriority: critical labels 2026-05-26 21:16:15 +00:00
Author
Owner

Branch created: feature/178-feat-add-workflow-dispatch-fallback-for-

git fetch origin
git checkout feature/178-feat-add-workflow-dispatch-fallback-for-
Branch created: [`feature/178-feat-add-workflow-dispatch-fallback-for-`](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/src/branch/feature/178-feat-add-workflow-dispatch-fallback-for-) ```bash git fetch origin git checkout feature/178-feat-add-workflow-dispatch-fallback-for- ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#178