[ISSUE-139] Fix portainer_automation_build_push workflow not registering on test branch #147

Merged
hitanshu merged 2 commits from Dave/CFTunnels:ISSUE-139-fix-workflow-registration into test 2026-07-09 05:09:29 +00:00
Member

Summary

Fix portainer_automation_build_push.yml workflow not being registered/available on the test branch.

Root cause: The workflow_dispatch input used type: choice with options: [test, prod]. The Gitea Actions runner in this instance may not support the choice type with the options subfield, causing the entire workflow to silently fail registration.

Fix: Changed the input type from choice to string. The workflow already has runtime validation (lines 40-44) that validates the environment value and fails early with a clear error if it's not test or prod, so the UI-level choice constraint was redundant.

Evidence

  • integration_test.yaml uses bare workflow_dispatch: (no inputs) — proven working
  • This is the only workflow using type: choice with options: in its workflow_dispatch inputs
  • YAML syntax is valid; the file exists on the test branch
  • A simple push didn't re-register it — suggesting a runner-side parsing/registration issue

Testing

  • After merge, verify workflow appears in Gitea Actions UI on test branch
  • Trigger workflow_dispatch manually with environment: test — should run normally
  • Push to test branch — should trigger automatically as before

Issues

## Summary Fix `portainer_automation_build_push.yml` workflow not being registered/available on the `test` branch. **Root cause**: The `workflow_dispatch` input used `type: choice` with `options: [test, prod]`. The Gitea Actions runner in this instance may not support the `choice` type with the `options` subfield, causing the entire workflow to silently fail registration. **Fix**: Changed the input `type` from `choice` to `string`. The workflow already has runtime validation (lines 40-44) that validates the environment value and fails early with a clear error if it's not `test` or `prod`, so the UI-level `choice` constraint was redundant. ## Evidence - `integration_test.yaml` uses bare `workflow_dispatch:` (no inputs) — proven working - This is the **only** workflow using `type: choice` with `options:` in its `workflow_dispatch` inputs - YAML syntax is valid; the file exists on the `test` branch - A simple push didn't re-register it — suggesting a runner-side parsing/registration issue ## Testing - [ ] After merge, verify workflow appears in Gitea Actions UI on `test` branch - [ ] Trigger `workflow_dispatch` manually with `environment: test` — should run normally - [ ] Push to `test` branch — should trigger automatically as before ## Issues - Hithomelabs/CFTunnels#139
Dave added 1 commit 2026-07-09 05:02:38 +00:00
Hithomelabs/CFTunnels#139: Simplify workflow_dispatch input type for Gitea compatibility
Some checks failed
sample gradle build and test / build (pull_request) Has been cancelled
35db41573a
Remove 'type: choice' and 'options:' from workflow_dispatch inputs,
replacing with 'type: string'. The Gitea Actions runner may not support
the 'choice' type with 'options' subfield, causing the entire workflow
to fail registration silently. The workflow already has runtime
validation (lines 40-44) that rejects invalid environment values, so
the 'choice' type was redundant.
Dave added 1 commit 2026-07-09 05:04:50 +00:00
Hithomelabs/CFTunnels#139: Remove portainer-automation service from docker-compose.yaml (now managed independently via portainer-automation/docker-compose.yaml)
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m58s
Daily cloudflare API integration test / cloudflare-api-test (push) Successful in 1m49s
Promote image with tag test to prod / tag (push) Successful in 6s
Promote image with tag test to prod / build_tag_push (push) Successful in 13s
sample gradle build and test / tag (push) Successful in 7s
sample gradle build and test / build_tag_push (push) Successful in 2m30s
8ee2abdbd7
hitanshu merged commit 8ee2abdbd7 into test 2026-07-09 05:09:29 +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#147
No description provided.