test another notify
This commit is contained in:
47
.gitea/actions/vk-notify/action.yaml
Normal file
47
.gitea/actions/vk-notify/action.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: 'notify'
|
||||
description: 'notify'
|
||||
|
||||
inputs:
|
||||
result:
|
||||
required: false
|
||||
default: "failure"
|
||||
type: string
|
||||
name:
|
||||
required: false
|
||||
type: string
|
||||
default: build
|
||||
secrets:
|
||||
required: false
|
||||
type: string
|
||||
token:
|
||||
required: true
|
||||
type: string
|
||||
to:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Set icon
|
||||
id: icon
|
||||
shell: bash
|
||||
run: |
|
||||
case "${{ inputs.result }}" in
|
||||
success) echo "ICON=✅" >> $GITHUB_ENV ;;
|
||||
failure) echo "ICON=❌" >> $GITHUB_ENV ;;
|
||||
canceled) echo "ICON=🤦" >> $GITHUB_ENV ;;
|
||||
started) echo "ICON=⚠️" >> $GITHUB_ENV ;;
|
||||
*) echo "ICON=ℹ️" >> $GITHUB_ENV ;;
|
||||
esac
|
||||
|
||||
- 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 }}
|
||||
Reference in New Issue
Block a user