test
This commit is contained in:
@@ -19,13 +19,23 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- uses: dosymep/vk-teams-action@v1.0.0
|
- name: Set icon
|
||||||
env:
|
id: icon
|
||||||
ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}'
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
token: ${{ inputs.token }}
|
case "${{ inputs.result }}" in
|
||||||
to: ${{ inputs.to }}
|
success) echo "ICON=✅" >> $GITHUB_ENV ;;
|
||||||
format: MarkdownV2
|
failure) echo "ICON=❌" >> $GITHUB_ENV ;;
|
||||||
message: |
|
canceled) echo "ICON=🤦" >> $GITHUB_ENV ;;
|
||||||
${{ github.repository }} \[${{inputs.name}}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ fromJson(env.ICONS)[inputs.result] }}
|
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