-
-
Notifications
You must be signed in to change notification settings - Fork 222
51 lines (41 loc) · 1.28 KB
/
PR.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: PR Check
on:
pull_request_target:
branches: [ develop ]
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
type: choice
options:
- info
- warning
- debug
permissions:
contents: read
jobs:
build:
environment: VkNet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
- name: Test
run: dotnet test VkNet.Tests/VkNet.Tests.csproj -c Release -f net7.0
- name: Send Telegram notification
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: 'html'
disable_web_page_preview: true
message: |
<b>✅ Task Succeeded</b>
<code>Reason: PullRequest Build №: ${{ github.run_number }} Pull Request для VkNet был успешно собран!</code>
<b>Build queued by: ${{ github.triggering_actor }}</b>
https://github.com/${{ github.repository }}/commit/${{github.event.pull_request.head.sha}}