From 4db36d1c212455b61da29ecae5bb7a05e8c98b74 Mon Sep 17 00:00:00 2001
From: Sudan Landge <sudanl@amazon.com>
Date: Fri, 22 Dec 2023 14:25:39 +0000
Subject: [PATCH] test workflow for changed files

Signed-off-by: Sudan Landge <sudanl@amazon.com>
---
 .github/workflows/markdown_link_checker.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 .github/workflows/markdown_link_checker.yml

diff --git a/.github/workflows/markdown_link_checker.yml b/.github/workflows/markdown_link_checker.yml
new file mode 100644
index 000000000000..f6afeeafdd9d
--- /dev/null
+++ b/.github/workflows/markdown_link_checker.yml
@@ -0,0 +1,20 @@
+name: Check links in markdown documentation
+
+on: pull_request
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+      - name: "Checkout repository"
+        uses: actions/checkout@v3
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
+
+      - name: "print list of markdown files changed"
+        run: |
+          # git fetch origin
+          changedFiles=$(git diff origin/$GITHUB_BASE_REF.. --name-only| grep "*.md")
+          for file in $changedFiles; do
+            echo "Processing file: $file"
+          done
\ No newline at end of file