changes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: 'notify'
|
name: 'notify'
|
||||||
description: 'notify'
|
description: 'Send VK Teams notification'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
result:
|
result:
|
||||||
@@ -10,9 +10,6 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: build
|
default: build
|
||||||
secrets:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
token:
|
token:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -20,8 +17,6 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
@@ -37,11 +32,15 @@ runs:
|
|||||||
*) echo "ICON=ℹ️" >> $GITHUB_ENV ;;
|
*) echo "ICON=ℹ️" >> $GITHUB_ENV ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
- uses: dosymep/vk-teams-action@v1.0.0
|
- name: Notify VK Teams
|
||||||
|
uses: dosymep/vk-teams-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
token: ${{ inputs.token }}
|
token: ${{ inputs.token }}
|
||||||
to: ${{ inputs.to }}
|
to: ${{ inputs.to }}
|
||||||
format: MarkdownV2
|
format: MarkdownV2
|
||||||
message: |
|
message: |
|
||||||
${{ github.repository }} [${{ inputs.name }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }})
|
*${{ github.repository }}* \- \[${{ inputs.name }}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) \
|
||||||
was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ env.ICON }}
|
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