From 7e732a985a195a10c692dc0af26a86d3b288fcae Mon Sep 17 00:00:00 2001 From: t8y2 Date: Fri, 2 Oct 2026 23:59:59 +0800 Subject: [PATCH] fix(ci): move Feishu release card after release promotion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The card previously sent right after the prerelease publish, so its title kept the (预发布) suffix and never updated once the release was promoted. Move the job next to notify-qq in publish-packages.yml so the card reflects the formal release. --- .github/workflows/publish-packages.yml | 19 +++++++++++++++++++ .github/workflows/release.yml | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index a5b2b71a42..913a5893c4 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -502,3 +502,22 @@ jobs: -H 'Authorization: Bearer ${ASTRBOT_API_KEY}' \ -H 'Content-Type: application/json' \ --data-binary @-" + + notify-feishu: + name: Notify Feishu group + needs: [promote-release] + if: ${{ inputs.notify }} + # Card sends after promotion so the title reflects the formal release. + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Send release card to Feishu + continue-on-error: true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }} + FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }} + FEISHU_CHAT_ID: ${{ secrets.FEISHU_CHAT_ID }} + run: python3 scripts/notify_feishu.py "${{ github.event.inputs.tag }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d6c06dd3c..0f37b1a927 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1089,25 +1089,6 @@ jobs: --retain 5 \ --apply - notify-feishu: - name: Notify Feishu group - needs: [publish, sync-release-to-cnb] - # Card sends once the release is public even if the CNB mirror sync failed. - if: always() && needs.publish.result == 'success' - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - - name: Send release card to Feishu - continue-on-error: true - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }} - FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }} - FEISHU_CHAT_ID: ${{ secrets.FEISHU_CHAT_ID }} - run: python3 scripts/notify_feishu.py "${{ github.ref_name }}" - docker: runs-on: ubuntu-latest strategy: