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 10, 2024
1 parent c1d4fa5 commit 24076f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/trigger-downstream-job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Github Action to trigger downstream job

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

View workflow job for this annotation

GitHub Actions / yaml-lint

1:1 [document-start] missing document start "---"
on:

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

View workflow job for this annotation

GitHub Actions / yaml-lint

2:1 [truthy] truthy value should be one of [false, true]
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 24076f2

Please sign in to comment.