Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.12 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.12 KB

passing GitHub GitHub release (latest by date)

CDEvents Github Action

GitHub Action to emit CDEvents.

The GitHub Action can be used to create CDEvents and send them as CloudEvents.

Disclaimer 🚧

This GitHub Action is work in work in progress, it will be maintained in sync with the specification.

Inputs

  • source- Required Source
  • subject_id - Required Subject ID
  • subject_pipeline_name- Required Subject Pipeline Name
  • subject_url- Required Subject URL

Example

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