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: