Docs workflolw #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") }}' }} |