Skip to content

Commit

Permalink
json bash
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Dec 20, 2024
1 parent 6ce86be commit b0df839
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/notify-irc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ jobs:
- name: Generate notification message
id: notify
run: |
.github/workflows/notify-irc.sh "$COMMITS_JSON" "$GITHUB_ACTOR" "$GITHUB_REF_NAME" "$GITHUB_COMPARE_URL"
- name: Encode Message as JSON
id: encode-message
run: |
MULTILINE_MESSAGE="$(printf 'Testing line one\nTest line two\n')"
ENCODED_MESSAGE=$(echo "$MULTILINE_MESSAGE" | jq -R .)
ENCODED_MESSAGE="$(.github/workflows/notify-irc.sh | jq -R .)"
echo "message=$ENCODED_MESSAGE" >> $GITHUB_OUTPUT
- name: Notify IRC
Expand Down

0 comments on commit b0df839

Please sign in to comment.