Skip to content

Commit

Permalink
Don't retrieve files with language extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ntluong95 committed Oct 29, 2024
1 parent be147a8 commit 6d2c05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create_pr_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
git push origin "${TRANSLATION_BRANCH}" --force
#! Get the list of changed .qmd files: COMPARED WITH main branch
changed_files=$(git diff --name-only origin/master "${TRANSLATION_BRANCH}" | grep '\.qmd$')
changed_files=$(git diff --name-only origin/main "${TRANSLATION_BRANCH}" | grep -E '\.qmd$' | grep -Ev '\.[a-z]{2}\.qmd$')
if [ -z "$changed_files" ]; then
echo "No .qmd file changes to include in PR for ${TRANSLATION_BRANCH}"
Expand Down

0 comments on commit 6d2c05c

Please sign in to comment.