Skip to content

Commit

Permalink
chore: send result after release kbcli (#154)
Browse files Browse the repository at this point in the history
(cherry picked from commit 940f3c8)
  • Loading branch information
JashBook committed Dec 27, 2023
1 parent a0e4a8b commit 4ab176c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-kbcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,32 @@ jobs:
uses: geekyeggo/delete-artifact@v2
with:
name: ${{ env.TAG_NAME }}-kbcli

release-message:
runs-on: ubuntu-latest
needs: [ upload-release-assert ]
outputs:
content-result: ${{ steps.release_message.outputs.content_result }}
release-version: ${{ steps.release_message.outputs.release_version }}
if: ${{ always() }}
steps:
- uses: actions/checkout@v4
- name: release message
id: release_message
run: |
CONTENT="error"
if [[ "${{ needs.upload-release-assert.result }}" == "success" ]]; then
CONTENT="success"
fi
echo 'content_result='$CONTENT >> $GITHUB_OUTPUT
echo release_version=${{ env.TAG_NAME } >> $GITHUB_OUTPUT
send-message:
needs: [ release-message ]
if: ${{ always() }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
TYPE: "2"
CONTENT: "release kbcli ${{ needs.release-message.outputs.release-version }} ${{ needs.release-message.outputs.content-result }}"
APECD_REF: "v0.1.42"
secrets: inherit

0 comments on commit 4ab176c

Please sign in to comment.