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 committed Sep 11, 2024
1 parent c1d4fa5 commit c781d9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/trigger-downstream-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

Check warning on line 3 in .github/workflows/trigger-downstream-job.yaml

View workflow job for this annotation

GitHub Actions / yaml-lint

3:5 [comments] too few spaces before comment
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 c781d9c

Please sign in to comment.