Skip to content

Docs workflolw

Docs workflolw #4

Workflow file for this run

on:
pull_request: {}
jobs:
notify-teams:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files_yaml: |
enterprise:
- ix-dev/enterprise/**
stable:
- ix-dev/stable/**
test:
- ix-dev/test/**
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
comment-tag: docs-team-comment
message: |
${{ steps.changed-files.outputs.enterprise_added_files != '' && 'Files have been added to `Enterprise` train:\n\n ${{ steps.changed-files.outputs.enterprise_added_files.join("\n") }}' }}
${{ steps.changed-files.outputs.enterprise_modified_files != '' && 'Files have been modified in `Enterprise` train:\n\n ${{ steps.changed-files.outputs.enterprise_modified_files.join("\n") }}' }}
${{ steps.changed-files.outputs.stable_added_files != '' && 'Files have been added to `Stable` train:\n\n ${{ steps.changed-files.outputs.stable_added_files.join("\n") }}' }}
${{ steps.changed-files.outputs.stable_modified_files != '' && 'Files have been modified in `Stable` train:\n\n ${{ steps.changed-files.outputs.stable_modified_files.join("\n") }}' }}
${{ steps.changed-files.outputs.test_added_files != '' && 'Files have been added to `Test` train:\n\n ${{ steps.changed-files.outputs.test_added_files.join("\n") }}' }}
${{ steps.changed-files.outputs.test_modified_files != '' && 'Files have been modified in `Test` train:\n\n ${{ steps.changed-files.outputs.test_modified_files.join("\n") }}' }}