fix(ci): move Feishu release card after release promotion

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.
This commit is contained in:
t8y2
2026-10-02 23:59:59 +08:00
parent 03fc00c33c
commit 7e732a985a
2 changed files with 19 additions and 19 deletions
+19
View File
@@ -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 }}"
-19
View File
@@ -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: