-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.1 KB
/
monitor-changed-files.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
36
37
38
39
name: "Monitor Changed Files"
on:
workflow_dispatch:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
- edited
jobs:
run-monitor-changed-files:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
- name: Get all test, doc and src files that have changed
id: changed-files-yaml
uses: tj-actions/changed-files@v40
with:
files_yaml_from_source_file: .github/files-in-observation.yml
- name: Send Slack Notification
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844
env:
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_HOOK }}
with:
payload: |
{
"text": "@wpe-seo, files that have changed in PR https://github.com/${{github.repository}}/pull/${{ github.event.pull_request.number }}: ${{ steps.changed-files-yaml.outputs.seo_all_changed_files }}"
}