generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.3 KB
/
SMS-shared-CI.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
name: SMS-CI
on:
pull_request:
paths:
- '.github/workflows/**'
- 'packages/shared/**'
branches:
- 'develop'
- 'master'
jobs:
SMS-shared-CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9.1.2
- run: pnpm i --frozen-lockfile
- run: pnpm build:shared
- name: Success notification to discord
uses: sarisia/actions-status-discord@v1.11.0
if: ${{ success() }}
with:
webhook: ${{ secrets.WEBHOOK }}
title: 'SMS shared CI successfully'
description: 'shared CI success'
content: 'success!!!'
username: 'SMS shared CI'
url: 'https://github.com/GSM-MSG/SMS-FrontEnd'
color: 4CAF50
avatar_url: ${{ secrets.AVATAR_URL }}
- name: Failure notification to discord
uses: sarisia/actions-status-discord@v1.11.0
if: ${{ failure() }}
with:
webhook: ${{ secrets.WEBHOOK }}
title: 'SMS shared CI failed'
description: 'shared CI failed'
content: 'ㅆㅂ...'
username: 'SMS shared CI'
url: 'https://github.com/GSM-MSG/SMS-FrontEnd'
color: e74c3c
avatar_url: ${{ secrets.AVATAR_URL }}