From c781d9cb74945398f0bbf5b109d064c243e6e0f7 Mon Sep 17 00:00:00 2001 From: "Chandan Kumar (raukadah)" Date: Tue, 10 Sep 2024 07:09:49 +0530 Subject: [PATCH] Add trigger-downstream-job github workflow 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]. https://github.com/openstack-k8s-operators/ci-framework/pull/2324 Signed-off-by: Chandan Kumar (raukadah) --- .github/workflows/trigger-downstream-job.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/trigger-downstream-job.yaml diff --git a/.github/workflows/trigger-downstream-job.yaml b/.github/workflows/trigger-downstream-job.yaml new file mode 100644 index 000000000..3eea4c49d --- /dev/null +++ b/.github/workflows/trigger-downstream-job.yaml @@ -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