Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLiu1123 committed Dec 6, 2024
1 parent ac937f7 commit 3e14ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-tweet-on-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit 3e14ef5

Please sign in to comment.