Skip to content

Suggests dispatchable workflows for a branch that would otherwise trigger the dispatchable workflows from pushes to the trunk.

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.typescript-action
Notifications You must be signed in to change notification settings

Skenvy/dispatch-suggestor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Test

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>


Inputs

name-of-input

  • Required | Optional
  • Input description.
  • Optional && Default 'abc'.

Outputs

name-of-output

  • Output description.

Example Usage

<TODO: provide and explain all impactful yaml blocks>

Optional: The recommended on: to use for the workflow

  • For a deployment_branch of main.
  • 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'

Required: In jobs.<job_id>.steps[*]

  • 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

In jobs.<job_id>.steps[*].uses:

  • 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'

A complete example

<TODO: provide a full working yaml block>

About

Suggests dispatchable workflows for a branch that would otherwise trigger the dispatchable workflows from pushes to the trunk.

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.typescript-action

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published