Conversation
Added workflow_dispatch event to allow manual triggering with branch input.
There was a problem hiding this comment.
Pull request overview
This PR changes the repository’s release workflow from an automatic trigger on pushes to main to a manually triggered workflow via workflow_dispatch, intended to support controlled/manual releases.
Changes:
- Replaced
on: push(main) withon: workflow_dispatch. - Added a required
branchworkflow input (defaulting tomain) for manual runs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| workflow_dispatch: | ||
| inputs: | ||
| branch: | ||
| description: 'Default Branch Name' | ||
| required: true | ||
| default: 'main' |
There was a problem hiding this comment.
workflow_dispatch adds a required branch input, but it isn’t used anywhere (e.g., actions/checkout still uses the default ref). As-is, the input has no effect and may confuse users. Also, switching from push to workflow_dispatch changes the event payload; later job conditions reference github.event.head_commit.message, which is absent for workflow_dispatch and can cause the job if: expression to behave unexpectedly/fail. Consider (a) using inputs.branch in checkout (ref:) and/or PR base, and (b) guarding the head_commit-based skip logic to only run on push events (or default missing messages to an empty string).
There was a problem hiding this comment.
@copilot apply changes based on this feedback
There was a problem hiding this comment.
Applied both fixes in df3f986:
inputs.branchwired into checkout — addedref: ${{ inputs.branch }}so the workflow actually checks out the branch the user specifies when triggering manually.head_commit.messageguarded with|| ''— each reference togithub.event.head_commit.messagein the jobif:condition now falls back to an empty string when the field is absent (as it is forworkflow_dispatch), so the skip-loop guards evaluate correctly without failing.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…workflow_dispatch Agent-Logs-Url: https://github.com/cloudengine-labs/devops_os/sessions/173bdd11-b657-4dcd-8aa5-d0306d8fc88d Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
This pull request updates the release workflow configuration to require manual triggering instead of running automatically on every push to the
mainbranch.Release workflow changes:
.github/workflows/release.ymlworkflow to useworkflow_dispatchwith a requiredbranchinput, enabling manual releases and preventing automatic runs on every push tomain.