From a0fb7b953c30b84361cd13cdc00b72205c8e4aaf Mon Sep 17 00:00:00 2001 From: Bianca Henderson Date: Thu, 14 Nov 2024 13:08:11 -0500 Subject: [PATCH] Update check_output() call in tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3bd38b9e89..37dcf02c84 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -563,7 +563,7 @@ jobs: # to override the version with a derivative of the branch name # override the version if `git describe --tag` does not start with the branch version - last_release = check_output(["git", "describe", "--tag"]) + last_release = check_output(["git", "describe", "--tag"], text=True).strip() prefix = "${{ github.ref_name }}"[:-1] # without x suffix if not last_release.startswith(prefix): envs["VERSION_OVERRIDE"] = "${{ github.ref_name }}"