Skip to content

Commit

Permalink
글자 포맷 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Guri999 committed Jan 31, 2025
1 parent dc2e5db commit 38764cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ jobs:
JIRA_ENTRIES+=$'\n- '
JIRA_ENTRIES+="$COMMIT_MSG"
JIRA_ENTRIES+=$'\n [**'
JIRA_ENTRIES+=$'\n'
JIRA_ENTRIES+="$JIRA_TITLE"
JIRA_ENTRIES+=$'**]('
JIRA_ENTRIES+=$'#%'
JIRA_ENTRIES+="$JIRA_LINK"
JIRA_ENTRIES+=')'
curl -X POST "${{ secrets.JIRA_DOMAIN }}/rest/api/2/issue/$JIRA_ID/transitions" \
-u "${{ secrets.JIRA_GURI }}:${{ secrets.JIRA_GURI_TOKEN }}" \
Expand Down Expand Up @@ -109,12 +108,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_NOTES=$(gh release view ${{ env.LATEST_RELEASE }} --json body -q .body)
MARK_DOWN="$(cat jira_entries.txt | sed -E 's/(.*) #% (https?:\/\/[^ ]+)/[\1](\2)/g')"
UPDATED_NOTES=$(cat <<EOF
## Updated $RELEASE_NOTES Release Notes
### Jira tasks
$(cat jira_entries.txt)
$MARK_DOWN
EOF
)
gh release edit "${{ env.LATEST_RELEASE }}" --notes "$UPDATED_NOTES"
Expand Down Expand Up @@ -183,12 +183,12 @@ jobs:
echo "Release Version: $RELEASE_VERSION"
RAW_CONTENT="$(cat jira_entries.txt)"
CLEANED_CONTENT="$(echo "$RAW_CONTENT" | sed -E 's/\[([^]]+)\]\(([^)]+)\)/<\2|\1>/g')"
SLACK_TEXT="$(cat jira_entries.txt | sed -E 's/(.*) #% (https?:\/\/[^ ]+)/<\2|\1>/g')"

SLACK_MESSAGE="$(cat << EOF
🚀 *AOS $RELEASE_VERSION release*

$CLEANED_CONTENT
$SLACK_TEXT

EOF
)"
Expand Down

0 comments on commit 38764cd

Please sign in to comment.