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 Apr 4, 2024
1 parent bb06e50 commit b72fca9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/ci/repo_check.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -eu
#set -eu

get_shas () {
cwd=$(pwd)
Expand All @@ -24,10 +24,8 @@ get_shas () {

flag_sync=true

ownerID=$1

declare -A urls branches pathes
submodules="base fv3 mom6 cice ww3 stoch gocart cmeps cdeps hycom cmake ccpp_physics ccpp_framework aqm noahmp"
submodules="base fv3 mom6 cice ww3 stoch gocart cmeps cdeps hycom cmake ccpp_physics ccpp_framework aqm noahmp cubed_sphere"

urls[base]='https://github.com/ufs-community/ufs-weather-model'
branches[base]='develop'
Expand All @@ -44,7 +42,6 @@ pathes[mom6]='MOM6-interface/MOM6'
urls[cice]='https://github.com/NOAA-EMC/CICE'
branches[cice]='emc/develop'
pathes[cice]='CICE-interface/CICE'

urls[ww3]='https://github.com/NOAA-EMC/WW3'
branches[ww3]='dev/ufs-weather-model'
pathes[ww3]='WW3'
Expand Down Expand Up @@ -93,9 +90,9 @@ pathes[noahmp]='NOAHMP-interface/noahmp'
#branches[upp]='develop'
#pathes[upp]='upp'

#urls[cubed_sphere]='https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere'
#branches[cubed_sphere]='dev/emc'
#pathes[cubed_sphere]='FV3/atmos_cubed_sphere'
urls[cubed_sphere]='https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere'
branches[cubed_sphere]='dev/emc'
pathes[cubed_sphere]='FV3/atmos_cubed_sphere'

for submodule in $submodules; do
url=${urls[$submodule]}
Expand All @@ -105,8 +102,11 @@ for submodule in $submodules; do
get_shas $url $gitapi $branch $workspace
done

if [[ $flag_sync=='true' ]]; then
exit 0
else
exit 0
if [[ $flag_sync=='false' ]]; then
echo "** ${GITHUB_WORKSPACE} **NOT** up to date"
exit 1
fi

echo "** ${GITHUB_WORKSPACE} up to date **"

exit 0

0 comments on commit b72fca9

Please sign in to comment.