Skip to content

Commit

Permalink
🔧 trying akeylimepie/telegram-action@main
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Nov 27, 2024
1 parent 543d1bd commit 3aea24c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/actions/notify-team/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,28 @@ runs:
echo THIS_RUN_ICON="$THIS_RUN_ICON" >> $GITHUB_ENV
echo "$LAST_RUN_ICON -> $THIS_RUN_ICON"
- name: 📢 Notify changes in Telegram
uses: cbrgm/telegram-github-action@v1
uses: akeylimepie/telegram-action@main
if: job.status != 'success' || env.LAST_RUN != 'success' || inputs.ignore_green_to_green == false

# this allows the build to succeed even when the notification fails
# e.g. due to dependabot push, which may not have the secret
continue-on-error: true
with:
token: ${{ inputs.token }}
to: ${{ inputs.to }}
parse-mode: 'markdown'
disable-web-page-preview: true
message: |
chat_id: ${{ inputs.to }}
parse_mode: MarkdownV2
#disable-web-page-preview: true
text: |
${{ format('{3} → {2}: {0} `[{1}]`', github.event.repository.name, github.ref_name, env.THIS_RUN_ICON, env.LAST_RUN_ICON) }}
${{ format('Author: {0} ![Avatar](https://github.com/{1}.png)', github.event.head_commit.author.name, github.event.head_commit.author.username ) }}
Commit: ${{ github.event.head_commit.message }}
[Details](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - [Repository](https://github.com/${{ github.repository }}) - [Changes](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
[Details](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) \- [Repository](https://github.com/${{ github.repository }}) \- [Changes](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
# - name: Google Chat Notificationa
# uses: SimonScholz/google-chat-action@main
Expand Down

0 comments on commit 3aea24c

Please sign in to comment.