Skip to content

Commit

Permalink
Update check_ci.sh
Browse files Browse the repository at this point in the history
needed more quotes
  • Loading branch information
TerrenceMcGuinness-NOAA authored Oct 23, 2023
1 parent 456a76e commit fa8de65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/check_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ for pr in ${pr_list}; do
# Check to see if this PR that was opened by the weekly tests and if so close it if it passed on all platforms
weekly_labels=$(${GH} pr view "${pr}" --repo "${REPO_URL}" --json headRefName,labels,author --jq 'select(.author.login | contains("emcbot")) | select(.headRefName | contains("weekly_ci")) | .labels[].name ') || true
if [[ -n "${weekly_labels}" ]]; then
num_platforms=$(find ${ROOT_DIR}/ci/platforms -type f -name "config.*" | wc -l)
num_platforms=$(find "${ROOT_DIR}/ci/platforms" -type f -name "config.*" | wc -l)
passed=0
for platforms in ${ROOT_DIR}/ci/platforms/config.*; do
for platforms in "${ROOT_DIR}"/ci/platforms/config.*; do
machine=$(basename "${platforms}" | cut -d. -f2)
if [[ "${weekly_labels}" == *"CI-${machine^}-Passed"* ]]; then
((passed=passed+1))
Expand Down

0 comments on commit fa8de65

Please sign in to comment.