From b34259ca1cb1e4b0aea79c4ff696bbabff03ced4 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 23 Nov 2023 11:32:48 +0800 Subject: [PATCH] chore: fix release-tweet action (#46036) Signed-off-by: afc163 --- .github/workflows/release-tweet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-tweet.yml b/.github/workflows/release-tweet.yml index 54bba222611e..449ea8ae6f64 100644 --- a/.github/workflows/release-tweet.yml +++ b/.github/workflows/release-tweet.yml @@ -8,14 +8,14 @@ permissions: jobs: tweet: - if: github.event.ref_type == 'tag' + if: ${{ github.event.ref_type == 'tag' && !contains(github.event.ref, 'alpha') }} runs-on: ubuntu-latest steps: - name: Tweet uses: nearform-actions/github-action-notify-twitter@v1 with: message: | - Ant Design (antd@${{ github.event.release.tag_name }}) has been released ~ 🎊🎊🎊 Check out the release notes: ${{ github.event.release.html_url }} + 🤖 Ant Design just released antd@${{ github.event.ref }} ✨🎊✨ Check out the full release note: https://github.com/ant-design/ant-design/releases/tag/${{ github.event.ref }} twitter-app-key: ${{ secrets.TWITTER_API_KEY }} twitter-app-secret: ${{ secrets.TWITTER_API_SECRET_KEY }} twitter-access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}