From 3cfbbd2009ca9ae806052df884bb34f3b077af85 Mon Sep 17 00:00:00 2001 From: Sudan Landge Date: Fri, 22 Dec 2023 14:25:39 +0000 Subject: [PATCH] test workflow for changed files Signed-off-by: Sudan Landge --- .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..92175c9722e0 --- /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