Fix version detection logic in release branches

PiperOrigin-RevId: 621452493
Change-Id: I812062db638f171e9e2dcb570f1797cf5118984e
diff --git a/scripts/docs/get_workspace_status.sh b/scripts/docs/get_workspace_status.sh
index 9c8fbcb..696ae8b 100755
--- a/scripts/docs/get_workspace_status.sh
+++ b/scripts/docs/get_workspace_status.sh
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-RELEASE_NAME=$(source scripts/release/common.sh; get_full_release_name)
+RELEASE_NAME=$(source scripts/release/common.sh; get_release_name)
 
 if [[ -z "$RELEASE_NAME" ]]; then
   echo BUILD_SCM_REVISION UNSAFE_"$(git rev-parse --abbrev-ref HEAD)"