Skip to content

Commit

Permalink
Per #2856, update the truth_data_version and input_data_version if ma…
Browse files Browse the repository at this point in the history
…in_vX.Y is not present in the branch name.
  • Loading branch information
JohnHalleyGotway committed Jun 17, 2024
1 parent 4d33df4 commit 5ba4772
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/jobs/set_job_controls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ elif [ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]; then
run_diff=true
fi

branch_name=`cut -d "/" -f3 <<< "${GITHUB_REF}"`

# check for main_vX.Y in the branch name
# otherwise, stick with the default settings for develop
if [[ "${branch_name}" =~ .*(main_v)([0-9]+\.[0-9]+).* ]]; then
truth_data_version=${BASH_REMATCH[1]}${BASH_REMATCH[2]}
input_data_version=${BASH_REMATCH[2]}
fi

fi

# if updating truth or running diff, run unit tests
Expand Down

0 comments on commit 5ba4772

Please sign in to comment.