Skip to content

twonds/github-repository-dispatch-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-repository-dispatch-buildkite-plugin

A Buildkite plugin that lets you trigger a Github workflow via a repository dispatch.

Example

Add the following to your pipeline.yml:

steps:
  - command: ls
    env:
      BUILDKITE_PLUGINS_ALWAYS_CLONE_FRESH: "true"
    label: ":github: Trigger github workflow"
    plugins:
      - twonds/github-repository-dispatch#v0.7.1:
          repository: '<your_path_to_repo>'
          event_type: '<the_event_type_for_workflow>'

Configuration

repository (Required, string)

The repository path to use

event_type (Required, string)

The event type of the workflow to indicate what workflow event to trigger.

Developing

To run the tests:

docker-compose run --rm tests

Contributing

  1. Fork the repo
  2. Make the changes
  3. Run the tests
  4. Commit and push your changes
  5. Send a pull request

TODO

  • Trigger Github workflow
  • Wait for workflow to complete
  • Report on Github workflow URL and status
  • Wait on certain workflow status
  • Complete test coverage
  • Complete documentation