forked from shopware/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.11 KB
/
watcher.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
name: Check shopware files for changes
on:
pull_request:
workflow_dispatch:
jobs:
check-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
./.github/scripts/file-watcher.sh
id: watcher
continue-on-error: true
- name: Send custom JSON data to Slack workflow
if: steps.watcher.outcome != 'success'
id: slack
uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"text": "Text: GitHub Action build result: ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":ladybug: Failed file watcher with status '${{ steps.watcher.outcome }}': Please check ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK