[workflow] fixed broken rellease workflows (#2604)

This commit is contained in:
Frank Lee
2023-02-06 21:40:19 +08:00
committed by GitHub
parent f7458d3ec7
commit f566b0ce6b
3 changed files with 15 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ jobs:
notify:
name: Notify Lark via webhook
needs: release
needs: build-n-publish
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
@@ -52,7 +52,7 @@ jobs:
run: |
url=$SERVER_URL/$REPO/actions/runs/$RUN_ID
if [ $STATUS == 'success' ]
if [ "$STATUS" == 'success' ]
then
msg="The Colossal-AI latest version has been successfully released to PyPI."
else
@@ -65,4 +65,4 @@ jobs:
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WEBHOOK_URL: ${{ secrets.LARK_NOTIFICATION_WEBHOOK_URL }}
STATUS: ${{ steps.publish.outcome }}
STATUS: ${{ needs.build-n-publish.result }}