Skip to content

Commit

Permalink
remove escapings
Browse files Browse the repository at this point in the history
  • Loading branch information
mayconamaroCW committed Apr 22, 2024
1 parent 8c00ebf commit 405e8a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ jobs:
id: outdated
run: |
TABLE="$(cat outdated.txt)"
TABLE="${TABLE//$'\n'/\\n}" # Escape newlines for JSON
TABLE="${TABLE//\"/\\\"}" # Escape double quotes for JSON
MESSAGE="Stratus outdated crates:\\n\\n\`\`\`${TABLE}\`\`\`"
MESSAGE="${MESSAGE//\`/\\\`}" # Escape backticks for JSON
echo "MESSAGE_JSON=$(echo -n "${MESSAGE}" | jq -aRs .)" >> $GITHUB_ENV
- name: Notify Slack
Expand Down

0 comments on commit 405e8a6

Please sign in to comment.