Add real branch dropdown to Build APK #79

Merged
alexander merged 5 commits from mcp/apk-branch-choice-dropdown into main 2026-09-22 06:01:13 +02:00
Owner

Fix after #76

Forgejo's native "Use workflow from" control is a free-text ref field on this instance, not a repository-branch dropdown.

This PR adds an explicit workflow_dispatch choice input named BookWave branch so Build APK presents a real dropdown.

Behavior

  • leave Forgejo's native "Use workflow from" ref on main;
  • choose the BookWave source from the BookWave branch dropdown;
  • the selected branch is resolved to an exact Git SHA before checkout;
  • debug/release, verifyDebug, Loopbound and signing behavior remain unchanged;
  • trusted Gradle cache restore is allowed only when the selected BookWave branch is main.

Keeping the dropdown fresh

Forgejo only supports static YAML options for type: choice. The existing retired picker workflow is repurposed as Refresh APK branch dropdown. It is manual-only and updates the generated branch block when needed. It is intentionally not automatic because committing every branch-list change to main would continually make open PRs stale.

Documentation is updated to match the live Forgejo UI and the new source-selection/cache semantics.

No application code or dependencies changed.

## Fix after #76 Forgejo's native "Use workflow from" control is a free-text ref field on this instance, not a repository-branch dropdown. This PR adds an explicit workflow_dispatch choice input named **BookWave branch** so Build APK presents a real dropdown. ### Behavior - leave Forgejo's native "Use workflow from" ref on `main`; - choose the BookWave source from the **BookWave branch** dropdown; - the selected branch is resolved to an exact Git SHA before checkout; - debug/release, verifyDebug, Loopbound and signing behavior remain unchanged; - trusted Gradle cache restore is allowed only when the selected BookWave branch is `main`. ### Keeping the dropdown fresh Forgejo only supports static YAML options for `type: choice`. The existing retired picker workflow is repurposed as **Refresh APK branch dropdown**. It is manual-only and updates the generated branch block when needed. It is intentionally not automatic because committing every branch-list change to `main` would continually make open PRs stale. Documentation is updated to match the live Forgejo UI and the new source-selection/cache semantics. No application code or dependencies changed.
alexander deleted branch mcp/apk-branch-choice-dropdown 2026-09-22 06:01:13 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
alexander/Audiobookshelf-Manager-Claude!79
No description provided.