Skip to content

Commit 1890cf6

Browse files
committed
encode event json to avoid whitespace errors
1 parent 80db146 commit 1890cf6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/zhook.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
env:
6565
INPUT_ZITIID: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
6666
INPUT_WEBHOOKURL: ${{ secrets.ZHOOK_URL_DEV_NOTIFICATIONS }}
67-
INPUT_EVENTJSON: ${{ toJson(github.event) }}
6867
INPUT_SENDERUSERNAME: GitHubZ
6968
INPUT_SENDERICONURL: https://github.com/fluidicon.png
7069
INPUT_ZITILOGLEVEL: 6
@@ -75,7 +74,7 @@ jobs:
7574
cat > /tmp/docker.env << EOF
7675
INPUT_ZITIID=${INPUT_ZITIID}
7776
INPUT_WEBHOOKURL=${INPUT_WEBHOOKURL}
78-
INPUT_EVENTJSON=${INPUT_EVENTJSON}
77+
INPUT_EVENTJSON=$(base64 -w 0 <<< '${{ toJson(github.event) }}')
7978
INPUT_SENDERUSERNAME=${INPUT_SENDERUSERNAME}
8079
INPUT_SENDERICONURL=${INPUT_SENDERICONURL}
8180
INPUT_ZITILOGLEVEL=${INPUT_ZITILOGLEVEL}

0 commit comments

Comments
 (0)