Skip to content

Commit

Permalink
Add link to action in Telegram notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Jul 15, 2021
1 parent 014c81f commit 2a7a889
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-sending-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@ name: Test sending notifications
on:
repository_dispatch:
types:
- test-sample-notification
- test-sending-notifications

jobs:
send_sampe_notification:
name: Send sample notification
runs-on: ubuntu-latest
steps:
- name: Dump environment variables
run: set
- name: Send
env:
ACTION_URL: ${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}/actions/runs/${{ env.GITHUB_RUN_ID }}
uses: appleboy/telegram-action@master
with:
token: ${{ secrets.TELEGRAM_TOKEN }}
to: ${{ secrets.TELEGRAM_TO }}
message: Sample notification from GitHub Action of https://github.com/mlocati/docker-php-extension-installer
message: |
Sample notification from GitHub Action.
See ${{ env.ACTION_URL }}

0 comments on commit 2a7a889

Please sign in to comment.