Skip to content

Commit

Permalink
Convert trigger action into reusable workflow
Browse files Browse the repository at this point in the history
this pull request:
- Renames github-action-trigger-downstream-job.yaml to
  github-action-trigger-downstream-job-reusable-workflow.yaml and adds
  on_workflow call to make it reusable github action workflow.
  It will allow us to reuse the trigger github action in multiple repos

- It adds trigger-downstream-job.yaml to call trigger github action on
  pull request.

It is being triggered at openstack-k8s-operators/ci-playground#21 (comment)
and tested here: openstack-k8s-operators/ci-playground#21 (comment)

Signed-off-by: Chandan Kumar (raukadah) <[email protected]>
  • Loading branch information
raukadah authored and openshift-merge-bot[bot] committed Sep 6, 2024
1 parent 1564ec3 commit 33930d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Github Action to trigger downstream job
name: Github Action reusable workflow to trigger downstream job

on:
issue_comment:
types: [created, edited]
workflow_call

jobs:
jobs01:
Expand Down
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
on:
issue_comment:
types: [created, edited]

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

0 comments on commit 33930d6

Please sign in to comment.