From 538ac02554e34cfa43b081c3461d6955ffa1c4a8 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-gh-action-job.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/trigger-downstream-gh-action-job.yaml diff --git a/.github/workflows/trigger-downstream-gh-action-job.yaml b/.github/workflows/trigger-downstream-gh-action-job.yaml new file mode 100644 index 000000000..1de8aa3b7 --- /dev/null +++ b/.github/workflows/trigger-downstream-gh-action-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