Skip to content

Add file watcher for shopware/shopware #7

Add file watcher for shopware/shopware

Add file watcher for shopware/shopware #7

Workflow file for this run

name: Check files for changes
on:
pull_request:
workflow_dispatch:
inputs:
path:
description: "Path to watch"
required: true
type: string
jobs:
create-adr-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./.github/scripts/watch.sh snippets
id: watcher
- name: Send custom JSON data to Slack workflow
id: slack
if: steps.watcher.conclusion == 'failure'
uses: slackapi/[email protected]
with:
# For posting a rich message using Block Kit
payload: |
{
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK