Skip to content

Commit

Permalink
correctly retrieve only changed .qmd files
Browse files Browse the repository at this point in the history
  • Loading branch information
ntluong95 committed Oct 29, 2024
1 parent 3427f6c commit be147a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create_pr_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
#! Force push the changes to the remote repository
git push origin "${TRANSLATION_BRANCH}" --force
#! Get the list of changed .qmd files
changed_files=$(git diff --name-only "${EN_BRANCH}" | grep '\.qmd$')
#! Get the list of changed .qmd files: COMPARED WITH main branch
changed_files=$(git diff --name-only origin/master "${TRANSLATION_BRANCH}" | grep '\.qmd$')
if [ -z "$changed_files" ]; then
echo "No .qmd file changes to include in PR for ${TRANSLATION_BRANCH}"
Expand Down

0 comments on commit be147a8

Please sign in to comment.