We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55ff4d commit 3427a80Copy full SHA for 3427a80
1 file changed
.github/workflows/jira_issue.yml
@@ -22,17 +22,15 @@ jobs:
22
run: |
23
# debug
24
set -x
25
+ TMP_BODY=$(mktemp)
26
+ trap "rm -f $TMP_BODY" EXIT
27
+
28
# Escape special characters in title and body
29
TITLE=$(echo '${{ github.event.issue.title }}' | sed 's/"/\\"/g' | sed "s/'/\\\'/g")
30
- read -r -d '' TMP_BODY <<'EOF'
- ${{ github.event.issue.body }}
-
31
32
- _Created from GitHub Action_ for ${{ github.event.issue.html_url }}
33
- EOF
34
35
- BODY=$(echo "$TMP_BODY" | sed 's/"/\\"/g' | sed "s/'/\\\'/g")
+ echo "${{ github.event.issue.body }}" > $TMP_BODY
+ echo -e "\n\n_Created from GitHub Action_ for ${{ github.event.issue.html_url }}" >> $TMP_BODY
+ BODY=$(cat "$TMP_BODY" | sed 's/"/\\"/g' | sed "s/'/\\\'/g")
36
37
PAYLOAD=$(jq -n \
38
--arg issuetitle "$TITLE" \
0 commit comments