-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (69 loc) · 1.74 KB
/
gitcord.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Gitcord
on:
issues:
types:
[
opened,
edited,
deleted,
transferred,
closed,
reopened,
assigned,
unassigned,
labeled,
unlabeled,
locked,
unlocked,
milestoned,
demilestoned,
]
issue_comment:
types: [created, edited, deleted]
pull_request:
types:
[
opened,
edited,
deleted,
transferred,
review_requested,
review_request_removed,
ready_for_review,
closed,
reopened,
assigned,
unassigned,
labeled,
unlabeled,
locked,
unlocked,
milestoned,
demilestoned,
]
pull_request_review:
types: [submitted, edited, dismissed]
pull_request_review_comment:
types: [created, edited, deleted]
jobs:
gitcord:
runs-on: ubuntu-latest
steps:
- name: Read GitHub event payload
id: event_payload
run: |
echo ::set-output name=payload::$(cat $GITHUB_EVENT_PATH)
- name: Derive Gitcord version
run: |
VERSION=$GITHUB_SHA
[[ ${{ github.event_name }} = "pull_request"* ]] && VERSION=latest
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: "Gitcord ${{ github.event_name }}:${{ github.event.action }} (${{ github.repository }})"
uses: ethanthatonekid/gitcord@main
with:
github-event-name: ${{ github.event_name }}
github-event-payload: ${{ steps.event_payload.outputs.payload }}
github-token: ${{ github.token }}
discord-token: ${{ secrets.DISCORD_TOKEN }}
discord-channel-id: ${{ secrets.DISCORD_CHANNEL_ID }}
version: ${{ env.VERSION }}