name: "CD Post Check"
description: "After Deploy Checkers"
author: VelocityLight

inputs:
  title:
    required: false
    description: "The title to send"
    default: "Release Notification"
  content:
    required: false
    description: "The content to send"
    default: "${{ github.repository }} is released by ${{ github.actor }}, branch or tag is ${{ github.ref_name}}, task url: ${{github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
  feishu_webhook_url:
    required: false
    default: "https://open.feishu.cn/open-apis/bot/v2/hook/f8683e89-d116-4959-ba43-b3531891212b"

runs:
  using: "composite"

  steps:
    - name: Feishu Notification
      uses: ./cicd-core/components/tools/notify-feishu
      with:
        feishu_webhook_url: ${{ inputs.feishu_webhook_url }}
        title: ${{ inputs.title }}
        content: ${{ inputs.content }}
