An open API service indexing awesome lists of open source software.

https://github.com/twonds/github-repository-dispatch-buildkite-plugin

A Buildkite plugin for triggering a Github workflow
https://github.com/twonds/github-repository-dispatch-buildkite-plugin

buildkite-plugin github-actions github-repository-dispatch

Last synced: 6 months ago
JSON representation

A Buildkite plugin for triggering a Github workflow

Awesome Lists containing this project

README

          

# github-repository-dispatch-buildkite-plugin

A [Buildkite plugin](https://buildkite.com/docs/agent/v3/plugins) that lets you trigger a Github workflow via a repository dispatch.

## Example

Add the following to your `pipeline.yml`:

```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: ''
event_type: ''
```

## 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:

```shell
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

- [x] Trigger Github workflow
- [x] Wait for workflow to complete
- [x] Report on Github workflow URL and status
- [ ] Wait on certain workflow status
- [ ] Complete test coverage
- [ ] Complete documentation