-
Notifications
You must be signed in to change notification settings - Fork 57
54 lines (42 loc) · 923 Bytes
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 'Discord'
on:
push:
branches: [master]
jobs:
test:
name: 'Run Tests'
runs-on: ubuntu-latest
environment: production
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Run Tests
run: go test ./cmd/harmonize/...
env:
GITHUB_TOKEN: ${{ secrets.ORG_ADMIN_GITHUB_TOKEN }}
discord:
needs: test
name: 'Discord'
runs-on: ubuntu-latest
environment: production
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Harmonize Discord
run: go run ./cmd/harmonize
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_ADMIN_BOT_TOKEN }}