-
Notifications
You must be signed in to change notification settings - Fork 54
35 lines (30 loc) · 1.1 KB
/
status-embed.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
name: Status Webhook
on:
workflow_run:
workflows:
- Lint
- Build & Publish
types:
- completed
jobs:
send-embed:
runs-on: ubuntu-latest
name: Send an embed to discord
steps:
- name: Run the Github Actions Status Embed Action
uses: SebastiaanZ/github-status-embed-for-discord@main
with:
webhook_id: ${{ secrets.WEBHOOK_ID }}
webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
status: ${{ github.event.workflow_run.conclusion }}
ref: ${{ github.ref }}
actor: ${{ github.actor }}
repository: ${{ github.repository }}
run_id: ${{ github.event.workflow_run.id }}
sha: ${{ github.event.workflow_run.head_sha }}
workflow_name: ${{ github.event.workflow_run.name }}
run_number: ${{ github.event.workflow_run.run_number }}
pr_title: ${{ github.event.pull_request.title }}
pr_number: ${{ github.event.pull_request.number }}
pr_source: ${{ github.event.pull_request.head.label }}
pr_author_login: ${{ github.event.pull_request.user.login }}