-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (32 loc) · 1.03 KB
/
discord.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
name: SolvUpdateNotification
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g yarn
- run: yarn install
- run: yarn test
- name: Disord Notification Epics
run: yarn discord:epics
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_CHANNEL_ID: ${{ secrets.DISCORD_CHANNEL_ID }}
DISCORD_CHANNEL_ID_JA: ${{ secrets.DISCORD_CHANNEL_ID_JA }}
- name: Tweet package update notification
if: success()
run: |
curl --location ${{ secrets.TW_ENDPOINT }} \
--header 'Content-Type: application/json' \
--data '{"repo": "epicsDAO/solv2", "hey": "${{ secrets.TW_ENDPOINT_SECRET }}"}'