From 3e14ef53358173aa6a49601ca6fef2b83b30ae67 Mon Sep 17 00:00:00 2001 From: Freeman Liu Date: Fri, 6 Dec 2024 14:52:36 +0800 Subject: [PATCH] update CI --- .github/workflows/create-tweet-on-x.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-tweet-on-x.yml b/.github/workflows/create-tweet-on-x.yml index fef36e8..f87f2ff 100644 --- a/.github/workflows/create-tweet-on-x.yml +++ b/.github/workflows/create-tweet-on-x.yml @@ -16,13 +16,13 @@ jobs: go install github.com/DanielLiu1123/xcli/cmd/xcli@latest RELEASE_NAME="${{ github.event.release.name }}" - RELEASE_BODY="${{ github.event.release.body }}" RELEASE_TAG="${{ github.event.release.tag_name }}" REPO_NAME="${{ github.repository }}" - TWEET_TEXT="šŸŽ‰ New Release for **${REPO_NAME}**!\n\nšŸš€ Version: ${RELEASE_NAME}\nšŸ”– Tag: ${RELEASE_TAG}\n\n${RELEASE_BODY}\n\nšŸ”— Check it out: https://github.com/${REPO_FULL_NAME}/releases/tag/${RELEASE_TAG}" + TWEET_TEXT=$(printf "šŸŽ‰ New Release for **${REPO_NAME}**!\n\nšŸš€ Version: ${RELEASE_NAME}\n\nšŸ”— Check it out: https://github.com/${REPO_NAME}/releases/tag/${RELEASE_TAG}") - echo "Tweet text: \n${TWEET_TEXT}" + echo "Tweeting content:" + echo "${TWEET_TEXT}" COMMIT_MESSAGE="${{ github.event.head_commit.message }}" xcli tweet create --text="${TWEET_TEXT}" \