-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.33 KB
/
build-main.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
---
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.14.0
- name: Install Node.js dependencies
run: yarn
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: feed-github
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://avatars.githubusercontent.com/u/82425418?s=200&v=4
SLACK_TITLE: 'env-secrets to dev :rocket:'
SLACK_USERNAME: env-secrets-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Notify failures
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_LINK_NAMES: true
SLACK_MESSAGE:
# prettier-ignore
"hey @${{ github.actor }}, @mark, sorry to let you know you broke the build"
SLACK_CHANNEL: feed-github
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://avatars.githubusercontent.com/u/82425418?s=200&v=4
SLACK_TITLE: 'Failed: env-secrets to dev :fire:'
SLACK_USERNAME: env-secrets-bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}