fix(previews): honor branch input on dispatch #27

Merged
ryan.mcgee merged 1 commit from fix/preview-cleanup-dispatch-branch into main 2026-10-20 17:52:43 +00:00
Owner

Summary

  • A manual run of preview-cleanup ignored its branch input: on workflow_dispatch, github.event.ref is the ref the run was started on (refs/heads/main), so BRANCH was always main, which matches no PR. Run 260's log shows no pull requests from branch 'main'.

Changes

  • BRANCH is inputs.branch for workflow_dispatch and the deleted ref for delete events.

Verification

  • actionlint 1.7.7: clean.
  • The delete event path is unchanged; it uses github.event.ref, whose refs/heads/<name> shape was checked earlier against Forgejo 15.0.9.
  • Not run on the live forge yet: after merge, dispatch with branch=ci/renovate-custom-charts and dry_run on, read the log, then run it for real.
## Summary - A manual run of `preview-cleanup` ignored its `branch` input: on `workflow_dispatch`, `github.event.ref` is the ref the run was started on (`refs/heads/main`), so `BRANCH` was always `main`, which matches no PR. Run 260's log shows `no pull requests from branch 'main'`. ## Changes - `BRANCH` is `inputs.branch` for `workflow_dispatch` and the deleted ref for `delete` events. ## Verification - `actionlint 1.7.7`: clean. - The `delete` event path is unchanged; it uses `github.event.ref`, whose `refs/heads/<name>` shape was checked earlier against Forgejo 15.0.9. - Not run on the live forge yet: after merge, dispatch with `branch=ci/renovate-custom-charts` and `dry_run` on, read the log, then run it for real.
fix(previews): honor branch input on dispatch
All checks were successful
Lint charts / lint (pull_request) Successful in 28s
e7eea1ee12
- github.event.ref is the dispatched ref (main) on workflow_dispatch,
  so the branch input was ignored and nothing matched
- use inputs.branch for dispatch, the deleted ref for delete events
ryan.mcgee deleted branch fix/preview-cleanup-dispatch-branch 2026-10-20 17:52:43 +00: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
Enclave-Information-Systems/helm!27
No description provided.