mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 03:55:51 +00:00
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:
@@ -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 }}"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user