[GH-ISSUE #11] Multi line json data #716

Closed
opened 2026-04-16 13:52:56 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @gjuoun on GitHub (Aug 21, 2020).
Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/11

Hey, thanks for creating this webhook!
But I found issues when I want to send multi-line literals json data:
like this

      - name: Webhook
        uses: joelwmale/webhook-action@master
        env:
          WEBHOOK_URL: ""
          data: >
            {"authorization": "mysecret", 
            "domain": "...", 
            "docker-image": "..." }

Do you know how to make it work?

Originally created by @gjuoun on GitHub (Aug 21, 2020). Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/11 Hey, thanks for creating this webhook! But I found issues when I want to send multi-line literals json data: like this ```yaml - name: Webhook uses: joelwmale/webhook-action@master env: WEBHOOK_URL: "" data: > {"authorization": "mysecret", "domain": "...", "docker-image": "..." } ``` Do you know how to make it work?
GiteaMirror added the question label 2026-04-16 13:52:56 -05:00
Author
Owner

@joelwmale commented on GitHub (Aug 26, 2020):

I do not control how github parses the input - have you tried reading something like https://github.com/octokit/request-action/issues/6?

<!-- gh-comment-id:680395104 --> @joelwmale commented on GitHub (Aug 26, 2020): I do not control how github parses the input - have you tried reading something like https://github.com/octokit/request-action/issues/6?
Author
Owner

@gjuoun commented on GitHub (Oct 9, 2020):

no worries, I solved this problem by using curl

<!-- gh-comment-id:705897374 --> @gjuoun commented on GitHub (Oct 9, 2020): no worries, I solved this problem by using `curl`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/webhook-action#716