GitHub Action to emit CDEvents.
The GitHub Action can be used to create CDEvents and send them as CloudEvents.
This GitHub Action is work in work in progress, it will be maintained in sync with the specification.
source
- Required Sourcesubject_id
- Required Subject IDsubject_pipeline_name
- Required Subject Pipeline Namesubject_url
- Required Subject URL
on: push
name: Main Workflow
jobs:
sendCDEvent:
name: Send CDEvent
runs-on: ubuntu-latest
steps:
- name: send CDEvent
uses: cdevents/github-action@main
with:
source: 'my/first/cdevent/program'
subject_id: 'myPipelineRun1'
subject_pipeline_name: 'myPipeline'
subject_url: 'https://example.com/myPipeline'
version: 0.0.1