-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 1009 Bytes
/
markdown-changed.yml
File metadata and controls
33 lines (30 loc) · 1009 Bytes
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
name: Markdown changed
on:
workflow_call:
permissions:
contents: read
jobs:
markdown-changed:
# description: |
# This triggers a markdown and spellcheck lint whenever documentation files change.
runs-on: ubuntu-latest
outputs:
proceed: ${{ steps.changed-markdown-files.outputs.any_changed }}
all_changed_files: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
steps:
-
name: Originating repo checkout (e.g. public fork)
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.sha }}
-
name: Get changed markdown files
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v4.7.0
id: changed-markdown-files
with:
files: '**/*.md'
-
name: Notify
run: |
echo "::notice::Detected some changed markdown files"
echo "${{ steps.changed-markdown-files.outputs.all_changed_files }}"