blackhat786000/Set Async GitHub Workflow Job Status
Set GitHub Actions workflow job status as success or failure based on Kafka event message
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| kafka_broker | Bootstrap server URL with port <12.34.56.78:9092> | yes | — |
| topic_name | Topic name that listener subscribes to | yes | — |
| job_id | Action input `job_id` should match message-value.job_id to determine job status from message-value.job_status. message-value={"job_id":"123","job_status":"SUCCESS"||"FAILED"} | no | — |
| listener_timeout | Time in minutes for which listener will be actively waiting for target message | — | 10 |
| authentication | Authentication mechanism (e.g., SASL PLAIN) | no | — |
| sasl_username | SASL username for authentication | no | — |
| sasl_password | SASL password for authentication | no | — |
| ssl_enabled | Enable SSL connection (true/false) | — | false |
| ca_path | PEM formatted file that contains a CA certificate to be used for validation | no | — |
| client_cert | PEM formatted certificate chain file to be used for SSL client authentication | no | — |
| client_key | PEM formatted file that contains your private key to be used for SSL client authentication | no | — |
| group_id | Kafka consumer group ID | no | — |
| group_prefix | Prefix to be used to generate consumer group ID like <group_prefix><job_id> | — | group- |
| success_when | Conditional expression that evaluates to `true` to mark job status as SUCCESS | no | — |
| fail_when | Conditional expression to mark job status as FAILED. This option only has an effect if `success_when` is provided | no | — |
| jinja_conditional | Conditional jinja template that must return `SUCCESS` string or `FAILED` string to mark job status as SUCCESS/FAILED | no | — |
Outputs
| name | description |
|---|---|
| json | JSON event message that marked job status as SUCCESS/FAILED |