Caution
This is not yet passed pre-release development and testing. The rest of this README is a preemptive skeleton that is currently meaningless. It will be updated once the initial development is complete.
Suggests dispatchable workflows for a branch that would otherwise trigger the dispatchable workflows from pushes to the trunk.
- name: Dispatch 📤 Suggestor 📥
uses: Skenvy/dispatch-suggestor@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
<TODO: explain more detail>
- Required | Optional
- Input description.
- Optional && Default
'abc'
.
- Output description.
<TODO: provide and explain all impactful yaml
blocks>
- For a
deployment_branch
ofmain
. - Use
on.pull_request.paths-ignore
if there're any paths you're certain won't ever trigger any other workflow.
on:
pull_request:
branches:
- 'main'
- Prior to the
uses: Skenvy/dispatch-suggestor@v1
step, you'll need to checkout with depth 0, as this action checks the diff against older commits. If you only allow squashes, a checkout depth greater than 1 might be ok, although 0 is recommended.
- name: 🏁 Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- With the deployment branch being
main
, in the least decorated way;
- uses: Skenvy/dispatch-suggestor@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
deployment-branch: 'main'
<TODO: provide a full working yaml
block>