Skip to content

Commit

Permalink
Add trigger-downstream-job github workflow
Browse files Browse the repository at this point in the history
By enabling trigger-downstream-job workflow, `trigger
github-experimental` comment will be triggered by approvers only
(defined in the owners file).

It will help us to avoid misue of trigger functionality.

The same[1] is already added in ci-framework repo.

Links:
[1]. openstack-k8s-operators/ci-framework#2324

Signed-off-by: Chandan Kumar (raukadah) <[email protected]>
  • Loading branch information
raukadah authored and cjeanner committed Sep 11, 2024
1 parent c1d4fa5 commit 538ac02
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/trigger-downstream-gh-action-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Github Action to trigger downstream job
on: # yamllint disable-line rule:truthy
issue_comment:
types: [created, edited]

jobs:
trigger_workflow:
uses: openstack-k8s-operators/ci-framework/.github/workflows/github-action-trigger-downstream-job-reusable-workflow.yaml@main

0 comments on commit 538ac02

Please sign in to comment.