chore(deps): bump actions/download-artifact in /.github/workflows #526
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
# called by another workflow | |
workflow_call: | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'sbt' | |
- name: Run tests | |
run: sbt test | |
TelegramPullRequest: | |
needs: [ Test ] #when finished successfully this job | |
if: github.event.pull_request | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send custom Telegram message | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
${{ github.event_name }} event on | |
${{ github.event.pull_request.html_url }} | |
by ${{ github.actor }} | |
${{ github.event.pull_request.title }} | |
format: html | |
disable_web_page_preview: true | |