Skip to content

Commit

Permalink
test workflow for changed files
Browse files Browse the repository at this point in the history
Signed-off-by: Sudan Landge <[email protected]>
  • Loading branch information
Sudan Landge committed Dec 22, 2023
1 parent 2913dac commit 4db36d1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/markdown_link_checker.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4db36d1

Please sign in to comment.