Obtain github webhook payload in job template inside of job workflow

I have a parent job workflow with webhook enabled, let’s say it’s called “GitHub Pull Request”
It will be trigged by in the following action:

Pull requests

Pull request assigned, auto merge disabled, auto merge enabled, closed, converted to draft, demilestoned, dequeued, edited, enqueued, labeled, locked, milestoned, opened, ready for review, reopened, review request removed, review requested, synchronized, unassigned, unlabeled, or unlocked.

The problem is that I only need it to be triggered when: pull request merge completed, and pull request is closed.

Currently the webhook triggered the AWX job workflow twice. in AWX job workflow variables, I don’t see any payload been passed by the webhook. So I cannot pass it to it’s children job templates where the actual runbook is executed.

Can someone please help to point a solution to this?

I was able to pass the payload to downstream job template using variable in the parent job workflow:

awx_webhook_payload: awx_webhook_payload

Parent job workflow variable

Payload observed in children job template