Merge pull request 'new_notify' (#29) from new_notify into main
Reviewed-on: #29
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
name: 'notify'
|
||||
description: 'notify'
|
||||
description: 'Send VK Teams notification'
|
||||
|
||||
inputs:
|
||||
result:
|
||||
required: false
|
||||
default: "failure"
|
||||
default: "failure"
|
||||
type: string
|
||||
name:
|
||||
required: false
|
||||
type: string
|
||||
default: build
|
||||
secrets:
|
||||
required: false
|
||||
type: string
|
||||
token:
|
||||
required: true
|
||||
type: string
|
||||
@@ -20,8 +17,6 @@ inputs:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
@@ -37,11 +32,15 @@ runs:
|
||||
*) echo "ICON=ℹ️" >> $GITHUB_ENV ;;
|
||||
esac
|
||||
|
||||
- uses: dosymep/vk-teams-action@v1.0.0
|
||||
- name: Notify VK Teams
|
||||
uses: dosymep/vk-teams-action@v1.0.0
|
||||
with:
|
||||
token: ${{ inputs.token }}
|
||||
to: ${{ inputs.to }}
|
||||
format: MarkdownV2
|
||||
message: |
|
||||
${{ github.repository }} [${{ inputs.name }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }})
|
||||
was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ env.ICON }}
|
||||
*${{ github.repository }}* \- \[${{ inputs.name }}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) \
|
||||
was *${{ inputs.result }}* by ${{ github.event.sender.login }} ${{ env.ICON }}
|
||||
|
||||
- name: Wait a bit (ensure send completes)
|
||||
run: sleep 5
|
||||
|
||||
Reference in New Issue
Block a user