Skip to content

Commit

Permalink
fix changed files command
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda committed Sep 10, 2024
1 parent f04c44b commit e52a492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
echo "Fetching changes from origin/main..."
git fetch origin main
echo "Checking for changed notebook files..."
CHANGED_FILES=$(git diff --name-only --diff-filter=d origin/main | grep -E '\.(md|ipynb)$' | sed 's|^docs/docs/|docs/site/|; s|\.(md|ipynb)$|/index.html|' || true)
CHANGED_FILES=$(git diff --name-only --diff-filter=d origin/main | grep -E '\.(md|ipynb)$' | sed -E 's|^docs/docs/|docs/site/|; s/\.(md|ipynb)$/\/index.html/' || true)
echo "Changed files: ${CHANGED_FILES}"
if [ -n "${CHANGED_FILES}" ]; then
echo "Running link check on HTML files matching changed notebook files..."
Expand Down

0 comments on commit e52a492

Please sign in to comment.