Skip to content

Commit 45b3b31

Browse files
committed
Pull branch before comparing it
1 parent f39761f commit 45b3b31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,15 @@ jobs:
540540
} fi
541541
542542
test_dir="tests/testthat/"
543-
git version
543+
git branch
544+
git pull main
544545
git branch
545546
git status
546547
547548
# Get the list of R files that have changed
548549
# https://github.com/cloudnativeto/envoy/blob/de67446fa8af973761bb4716f5143d73643baf8b/.github/workflows/get_build_targets.sh_bak#L9
549-
files=$(git diff --name-only HEAD FETCH_HEAD -- "$test_dir"/*.R R/*.R)
550+
files=$( git diff main.. --name-only -- "$test_dir"/*.R R/*.R )
551+
echo "$files"
550552
551553
if [ -z "$files" ]
552554
then {

0 commit comments

Comments
 (0)