From 88b43a1bf3417e7d80fcd758ac3e299e27676f2a Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 15 Oct 2025 13:18:44 +0300 Subject: [PATCH] test --- .gitea/actions/notify/action.yaml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.gitea/actions/notify/action.yaml b/.gitea/actions/notify/action.yaml index 10fff00..1ed69cc 100644 --- a/.gitea/actions/notify/action.yaml +++ b/.gitea/actions/notify/action.yaml @@ -19,13 +19,23 @@ inputs: runs: using: 'composite' steps: - - uses: dosymep/vk-teams-action@v1.0.0 - env: - ICONS: '{"success":"✅","failure":"❌","canceled":"đŸ¤Ļ","started":"âš ī¸"}' - 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 }} ${{ fromJson(env.ICONS)[inputs.result] }} - + - 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 }}