[ISSUE-139] Remove workflow_dispatch inputs for Gitea 1.22.x compatibility #149

Merged
hitanshu merged 2 commits from Dave/CFTunnels:ISSUE-139-remove-inputs into test 2026-07-09 06:15:28 +00:00
Member

Summary

Gitea 1.22.x does NOT support workflow_dispatch with inputs. The inputs block under workflow_dispatch causes the nektos/act YAML parser to silently reject the entire workflow file, so it never appears in the Gitea Actions UI. The push trigger also stops working as a result.

Changes Made

  1. Removed the inputs block entirely from on.workflow_dispatch — now just an empty trigger (workflow_dispatch:).

  2. Simplified the "Determine environment" step to be purely branch-based — removed the if workflow_dispatch / inputs.environment branch. Environment is now determined solely by github.ref_name:

    • Push to maintarget_env=prod → MINOR bump
    • Push to testtarget_env=test → PATCH bump
    • Manual workflow_dispatch on either branch → same branch-based logic

Behavior After Fix

  • Push to test branchtarget_env=test → PATCH bump → build & push test image
  • Push to main branchtarget_env=prod → MINOR bump → promote test→prod image
  • Manual workflow_dispatch (on either branch) → same branch-based logic applies
  • The "Run workflow" button will still appear in Gitea Actions UI (just without custom input fields)

Testing

  • Workflow appears in Gitea Actions UI
  • Push to test branch triggers the workflow
  • Manual workflow_dispatch triggers without input fields
## Summary Gitea 1.22.x does NOT support `workflow_dispatch` with `inputs`. The `inputs` block under `workflow_dispatch` causes the `nektos/act` YAML parser to silently reject the entire workflow file, so it never appears in the Gitea Actions UI. The `push` trigger also stops working as a result. ### Changes Made 1. **Removed the `inputs` block entirely from `on.workflow_dispatch`** — now just an empty trigger (`workflow_dispatch:`). 2. **Simplified the "Determine environment" step to be purely branch-based** — removed the `if workflow_dispatch` / `inputs.environment` branch. Environment is now determined solely by `github.ref_name`: - Push to `main` → `target_env=prod` → MINOR bump - Push to `test` → `target_env=test` → PATCH bump - Manual `workflow_dispatch` on either branch → same branch-based logic ### Behavior After Fix - **Push to `test` branch** → `target_env=test` → PATCH bump → build & push test image - **Push to `main` branch** → `target_env=prod` → MINOR bump → promote test→prod image - **Manual `workflow_dispatch`** (on either branch) → same branch-based logic applies - The "Run workflow" button will still appear in Gitea Actions UI (just without custom input fields) ## Related Issues - Hithomelabs/CFTunnels#139 ## Testing - [ ] Workflow appears in Gitea Actions UI - [ ] Push to test branch triggers the workflow - [ ] Manual workflow_dispatch triggers without input fields
Dave added 1 commit 2026-07-09 05:44:24 +00:00
Hithomelabs/CFTunnels#139: Remove workflow_dispatch inputs for Gitea 1.22.x compat
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m53s
c9dea2a91d
Dave added 1 commit 2026-07-09 06:12:00 +00:00
Hithomelabs/CFTunnels#149: Resolve merge conflicts by removing workflow_dispatch inputs and simplifying env step
Some checks failed
sample gradle build and test / build (pull_request) Successful in 1m51s
Build & Push Portainer Automation / version (push) Successful in 7s
sample gradle build and test / tag (push) Successful in 7s
Build & Push Portainer Automation / build-and-push (push) Successful in 1m55s
sample gradle build and test / build_tag_push (push) Failing after 28s
0df22454a3
hitanshu merged commit 0df22454a3 into test 2026-07-09 06:15:28 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hithomelabs/CFTunnels#149
No description provided.