-
Notifications
You must be signed in to change notification settings - Fork 81
31 lines (30 loc) · 898 Bytes
/
_commit.yml
File metadata and controls
31 lines (30 loc) · 898 Bytes
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
name: commit
on:
push:
branches:
- master
jobs:
commit:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: 8398a7/action-slack@v3
with:
status: custom
custom_payload: |
{
attachments: [{
author_name: `${{ github.actor }}`,
author_link: `https://github.com/${{ github.actor }}`,
author_icon: `https://github.com/${{ github.actor }}.png?size=32`,
text: `${{ github.event.head_commit.message }}`,
title_link: `https://github.com/${{ github.repository }}/commit/${{ github.sha }}`,
title: `${{ github.sha }}`,
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.COMMIT_WEBHOOK }}
if: always()
continue-on-error: true