-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.48 KB
/
release-drafter.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
52
53
---
name: Release Drafter
'on':
workflow_dispatch:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- master
permissions:
contents: read
jobs:
on-failure:
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: send telegram message on fail build
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
${{ github.actor }} conclusion: ${{ github.event.workflow_run.conclusion }}
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
release-drafter:
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
pages: write
id-token: write
contents: write
pull-requests: write
steps:
- name: 🚀 Create Pre-Release version
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
🍏 ${{ github.actor }}
Commit message: ${{ github.event.commits[0].message }}
Commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }}