forked from khimananda/slack-approval
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.39 KB
/
slack-approval-test.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
55
56
57
58
name: Test slack-approval
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
approval:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
npm install
- name: slack-approval
uses: ./
env:
SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
ENVIRONMENT: "production"
URL: "https://khimanand.com.np"
timeout-minutes: 10
approval-2nd-on:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
npm install
- name: slack-approval
uses: ./
env:
SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
ENVIRONMENT: "production"
URL: "https://khimananda.com.np"
timeout-minutes: 10