Skip to content

Commit

Permalink
Update repo_check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbk2004 authored Mar 26, 2024
1 parent 295f29d commit 27d7f1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/ci/repo_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ if [[ $common != ${base[sha]} ]]; then
comment="* ufs-weather-model **NOT** up to date\n"
fi

echo 'kimmmmmmmmm'

for submodule in $submodules; do
eval cd ${GITHUB_WORKSPACE}/'${'$submodule'[dir]}'
eval git remote add upstream '${'$submodule'[repo]}'
eval echo '${'$submodule'[repo]}'
eval git fetch -q upstream '${'$submodule'[branch]}'
echo '${'$submodule'[repo]}'
git fetch -q upstream '${'$submodule'[branch]}'
common=$(eval git merge-base '${'$submodule'[sha]}' @)
if (eval test $common != '${'$submodule'[sha]}'); then
comment+="* $submodule **NOT** up to date\n"
Expand Down

0 comments on commit 27d7f1c

Please sign in to comment.