Skip to content

Commit

Permalink
testing the ci telegram bot
Browse files Browse the repository at this point in the history
  • Loading branch information
giladAlboher committed Mar 5, 2024
1 parent 8957454 commit 161f53d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/telegram-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3


- name: Select random photo
id: random_photo
run: |
PHOTO=$(ls tests/*.webp | shuf -n 1)
echo "::set-output name=photo::$PHOTO"
shell: bash

- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
Expand All @@ -22,6 +29,6 @@ jobs:
_Repository_: ${{ github.repository }}
[See changes here](https://github.com/${{ github.repository }}/commit/${{github.sha}})
photo: tests/gitmeme.webp
photo: ${{ steps.random_photo.outputs.photo }}


0 comments on commit 161f53d

Please sign in to comment.