Skip to content

Commit 9e8846e

Browse files
svekarsdbort
andauthored
Apply suggestions from code review
Co-authored-by: Dave Bort <[email protected]>
1 parent a9792ec commit 9e8846e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/doc-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,11 @@ jobs:
9494
# Get github.ref for the output doc folder. By default "main"
9595
# If matches a tag like refs/tags/v1.12.0-rc3 or
9696
# refs/tags/v1.12.0 convert to 1.12
97-
GITHUB_REF=${{ github.ref }}
9897
export GITHUB_REF=${{ github.ref }}
9998
10099
# Convert refs/tags/v1.12.0rc3 into 1.12.
101100
# Adopted from https://github.com/pytorch/pytorch/blob/main/.github/workflows/_docs.yml#L150C11-L155C13
102-
if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\.[0-9]+)\.* ]]; then
101+
if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\.[0-9]+) ]]; then
103102
TARGET_FOLDER="${BASH_REMATCH[1]}"
104103
else
105104
TARGET_FOLDER="main"

0 commit comments

Comments
 (0)