Skip to content

fix: update files

fix: update files #15

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: Run step if test file(s) change
id: get-payload
if: steps.changed-files-yaml.outputs.seo_any_changed == 'true'
run: |
echo ::set-output name=slack_payload::'List all the 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 }}'
- 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": "${{ steps.get-payload.outputs.slack_payload }}"
}