is it possible to get the full json payload of a p...
# github-actions
p
is it possible to get the full json payload of a pull request within an action?
I need to take this json and then trigger a call to a webhook but I need the json payload of the push to the PR
I tried this :
Copy code
- name: Invoke deployment hook
      if: github.event.pull_request.state == 'open'
      uses: distributhor/workflow-webhook@v2
      env:
        webhook_type: 'json-extended'
        webhook_url: ${{ secrets.WEBHOOK_URL }}
        webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
        verbose: true
but sadly it does not allow for custom headers to be sent
and I need the X-Delivery header to be a uuid
so I can use any other action but I will need to know how to get the full json payload of the request
r
p
mmmm
I tried and I can’t find the same keys on the dump that the webhook
WTH?????
why does the webhook has such a different payload
it does not work @RB
the webhook payload is different that the workflow payload
I do not know if is even possible to get the payload formated like the webhook payload
I figured it out
payload was ok
the headers was the problem
👍 1